neuromaps.transforms.fsaverage_to_fslr
- neuromaps.transforms.fsaverage_to_fslr(data, target_density='32k', hemi=None, method='linear')[source]
Resample data on fsaverage surface to the fsLR surface.
- Parameters:
data (str or os.PathLike or nib.GiftiImage or tuple) – Input fsaverage data to be resampled to fsLR surface
target_density ({'4k', '8k', '32k', '164k'}, optional) – Desired density of output fsLR surface. Default: ‘32k’
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