cortex.utils.get_vox_dist

cortex.utils.get_vox_dist(subject, xfmname, surface='fiducial', max_dist=inf)[source]

Get the distance (in mm) from each functional voxel to the closest point on the surface.

Parameters
subjectstr

Name of the subject

xfmnamestr

Name of the transform

shapetuple

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.

Returns
distndarray

Distance (in mm) to the closest point on the surface

argdistndarray

Point index for the closest point