nifreeze.data.utils module¶
- nifreeze.data.utils.apply_affines(nii, em_affines, output_filename=None)[source]¶
Apply affines to supplied nii data
- Parameters:
nii (
Nifti1Image
) – Nifti1Image data to be transformedem_affines (
ndarray
) – Nx4x4 arrayoutput_filename (
str
, optional) – String specifying filepath to which to save transformed Nifti1Image data
- Returns:
nii_t_img – Transformed Nifti1Image data
- Return type:
Nifti1Image