AFQ.registration#
Registration tools
Functions#
|
Read a syn registration mapping from a nifti file |
|
Read a syn registration mapping from a nifti file |
|
Warning: This is only used for pyAFQ tests and backwards compatibility. |
Module Contents#
- AFQ.registration.read_syn_mapping(disp, codisp)[source]#
Read a syn registration mapping from a nifti file
- Parameters:
- dispstr or Nifti1Image
If string, file must of an image or ndarray. If image, contains the mapping displacement field in each voxel from subject to template
- codispstr or Nifti1Image
If string, file must of an image or ndarray. If image, contains the mapping displacement field in each voxel from template to subject
- Returns:
- Aclass:DiffeomorphicMap object
- AFQ.registration.read_affine_mapping(affine, domain_img, codomain_img)[source]#
Read a syn registration mapping from a nifti file
- Parameters:
- affinestr or ndarray
If string, file must of an ndarray. If ndarray, contains affine transformation used for mapping
- domain_imgstr or Nifti1Image
- codomain_imgstr or Nifti1Image
- Returns:
- Aclass:AffineMap object
- AFQ.registration.read_old_mapping(disp, domain_img, codomain_img, prealign=None)[source]#
Warning: This is only used for pyAFQ tests and backwards compatibility. Read old-style registration mapping from a nifti file.
- Parameters:
- dispstr or Nifti1Image
If string, file must of an image or ndarray. If image, contains the mapping displacement field in each voxel Shape (x, y, z, 3, 2)
- domain_imgstr or Nifti1Image
- codomain_imgstr or Nifti1Image
- Returns:
- Aclass:DiffeomorphicMap object