neuromaps.transforms.fslr_to_civet

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

Resamples data on fsLR surface to the CIVET surface

Parameters
  • data (str or os.PathLike or nib.GiftiImage or tuple) – Input fsLR data to be resampled to CIVET surface

  • target_density ({'41k', '164k'}, optional) – Desired density of output CIVET 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 surface

Return type

tuple-of-nib.GiftiImage