netneurotools.civet.civet_to_freesurfer
- netneurotools.civet.civet_to_freesurfer(brainmap, surface='mid', version='v1', freesurfer='fsaverage6', method='nearest', data_dir=None)[source]
Project brainmap in CIVET space to freesurfer fsaverage space.
Uses a nearest-neighbor projection based on the geometry of the vertices
- Parameters:
brainmap (array_like) – CIVET brainmap to be converted to freesurfer space
surface ({'white', 'mid'}, optional) – Which CIVET surface to use for geometry of brainmap. Default: ‘mid’
version ({'v1', 'v2'}, optional) – Which CIVET version to use for geometry of brainmap. Default: ‘v1’
freesurfer (str, optional) – Which version of FreeSurfer space to project data to. Must be one of {‘fsaverage’, ‘fsaverage3’, ‘fsaverage4’, ‘fsaverage5’, ‘fsaverage6’}. Default: ‘fsaverage6’
method ({'nearest', 'linear'}, optional) – What method of interpolation to use when projecting the data between surfaces. Default: ‘nearest’
data_dir (str, optional) – Path to use as data directory. If not specified, will check for environmental variable ‘NNT_DATA’; if that is not set, will use ~/nnt-data instead. Default: None
- Returns:
data – Provided brainmap mapped to FreeSurfer
- Return type:
np.ndarray