get_vox_dist(subject, xfmname, surface='fiducial', max_dist=inf)¶
Get the distance (in mm) from each functional voxel to the closest point on the surface.
Name of the subject
Name of the transform
Output shape for the mask
- max_distnonnegative float, optional
Limit computation to only voxels within max_dist mm of the surface. Makes computation orders of magnitude faster for high-resolution volumes.
Distance (in mm) to the closest point on the surface
Point index for the closest point