brainprint.surfaces¶
Utility module holding surface generation related functions.
- brainprint.surfaces.create_aseg_surface(subject_dir, destination, indices)[source]¶
Generate a surface from the aseg and label files.
- brainprint.surfaces.create_aseg_surfaces(subject_dir, destination)[source]¶
Create surfaces from FreeSurfer aseg labels.
- brainprint.surfaces.create_cortical_surfaces(subject_dir, destination)[source]¶
Create cortical surfaces from FreeSurfer labels.
- brainprint.surfaces.create_surfaces(subject_dir, destination, skip_cortex=False)[source]¶
Create surfaces based on FreeSurfer labels.
- Parameters:
- Returns:
- brainprint.surfaces.read_vtk(path)[source]¶
Read a VTK file and return a triangular mesh.
- Parameters:
- path
Path
Path to the VTK file to be read.
- path
- Returns:
TriaMesh
A triangular mesh object representing the contents of the VTK file.
- Raises:
RuntimeError
If there is an issue reading the VTK file or if the file is empty.