brainstat.mesh.interpolate.cortical_ribbon

brainstat.mesh.interpolate.cortical_ribbon(pial_mesh, wm_mesh, nii, mesh_distance=6)[source]

Finds voxels inside of the cortical ribbon.

Parameters
  • pial_mesh (BSPolyData) – Pial mesh.

  • wm_mesh (BSPolyData) – White matter mesh.

  • nii (Nibabel nifti) – Nifti image containing the space in which to output the ribbon.

  • mesh_distance (float, optional) – Maximum distance from the cortical mesh at which the ribbon may occur. Used to reduce the search space, by default 6.

Returns

numpy.ndarray – Matrix coordinates of voxels inside the cortical ribbon.