eddymotion.data.utils module

eddymotion.data.utils.apply_affines(nii, em_affines, output_filename=None)[source]

Apply affines to supplied nii data

Parameters:
  • nii (Nifti1Image) – Nifti1Image data to be transformed

  • em_affines (ndarray) – Nx4x4 array

  • output_filename (str, optional) – String specifying filepath to which to save transformed Nifti1Image data

Returns:

nii_t_img – Transformed Nifti1Image data

Return type:

Nifti1Image