neuromaps.transforms.mni152_to_mni152
- neuromaps.transforms.mni152_to_mni152(img, target='1mm', method='linear')[source]
Resample img to target image (if supplied) or target resolution.
- Parameters:
img (str or os.PathLike or niimg_like) – Image in MNI152 space to be resampled
target ({str, os.PathLike, niimg_like} or {'1mm', '2mm', '3mm'}, optional) – Image in MNI152 space to which img should be resampled. Can alternatively specify desired resolution of output resample image. Default: None
method ({'nearest', 'linear'}, optional) – Method for resampling. Specify ‘nearest’ if img is a label image. Default: ‘linear’
- Returns:
resampled – Resampled input img
- Return type:
nib.Nifti1Image