cortex.dataset.Vertex.map¶
- Vertex.map(target_subj: str, surface_type: str = 'fiducial', hemi: Literal['lh', 'rh', 'both'] = 'both', fs_subj: str | None = None, **kwargs) Vertex[source]¶
Map this data from this surface to another surface
Builds a source-to-target vertex mapping matrix via cortex.freesurfer.get_mri_surf2surf_matrix() and applies it to this Vertex’s data.
NOTE: Requires the source and target subjects’ registered sphere surfaces (?h.sphere.reg), produced by Freesurfer’s recon-all pipeline. No active Freesurfer installation is needed at call time – the mapping is computed directly from those files in pure Python.
- Parameters:
- target_subjstr
freesurfer subject to which to map
- Returns:
- Vertex
This data, resampled onto target_subj’s vertices, with the same cmap, vmin, and vmax as this Vertex.
- Other Parameters:
- kwargs map to `cortex.freesurfer.get_mri_surf2surf_matrix()`