MriImageLoader#
- class polpo.preprocessing.mri.MriImageLoader(filename=None, as_nib=False, return_affine=False)[source]#
Bases:
PreprocessingStep
Load image from .nii file.
- Parameters:
filename (str) – File to load.
as_nib (bool) – Whether to return the nibabel object.
return_affine (bool) – Whether to return the affine transformation. Ignore if as_nib is True.