neuromaps.transforms.fsaverage_to_fsaverage

neuromaps.transforms.fsaverage_to_fsaverage(data, target_density='41k', hemi=None, method='linear')[source]

Resample data on fsaverage surface to new density.

Parameters:
  • data (str or os.PathLike or nib.GiftiImage or tuple) – Input fsaverage data to be resampled

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

  • hemi ({'L', 'R'}, optional) – If data is not a tuple this specifies the hemisphere the data are representing. Default: None

  • method ({'nearest', 'linear'}, optional) – Method for resampling. Specify ‘nearest’ if data are label images. Default: ‘linear’

Returns:

resampled – Input data resampled to new density

Return type:

tuple-of-nib.GiftiImage