neuromaps.transforms.mni152_to_fsaverage

neuromaps.transforms.mni152_to_fsaverage(img, fsavg_density='41k', method='linear')[source]

Project img in MNI152 space to fsaverage surface.

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

  • fsavg_density ({'3k', '10k', '41k', '164k'}, optional) – Desired output density of fsaverage surface. Default: ‘41k’

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

Returns:

fsaverage – Projected img on fsaverage surface

Return type:

(2,) tuple-of-nib.GiftiImage