cortex.utils.get_cortical_mask

cortex.utils.get_cortical_mask(subject, xfmname, type='nearest')[source]

Gets the cortical mask for a particular transform

Parameters:
subjectstr

Subject name

xfmnamestr

Transform name

typestr
Mask type, one of {“cortical”, “thin”, “thick”, “nearest”, “line_nearest”}.
  • ‘cortical’ includes voxels contained within the cortical ribbon,

between the freesurfer-estimated white matter and pial surfaces. - ‘thin’ includes voxels that are < 2mm away from the fiducial surface. - ‘thick’ includes voxels that are < 8mm away from the fiducial surface. - ‘nearest’ includes only the voxels overlapping the fiducial surface. - ‘line_nearest’ includes all voxels that have any part within the cortical

ribbon.

Returns:
maskarray

boolean mask array for cortical voxels in functional space

Notes

“nearest” is a conservative “cortical” mask, while “line_nearest” is a liberal “cortical” mask.