neuromaps.transforms.mni152_to_fslr

neuromaps.transforms.mni152_to_fslr(img, fslr_density='32k', method='linear')[source]

Project img in MNI152 space to fsLR surface.

Parameters:
  • img (str or os.PathLike or niimg_like) – Image in MNI152 space to be projected

  • fslr_density ({'32k', '164k'}, optional) – Desired output density of fsLR surface. Default: ‘32k’

  • method ({'nearest', 'linear'}, optional) – Method for projection. Specify ‘nearest’ if img is a label image. Default: ‘linear’

Returns:

fsLR – Projected img on fsLR surface

Return type:

(2,) tuple-of-nib.GiftiImage