read_freesurfer_annot | R Documentation |
Reads a Freesurfer annotation file and creates a LabeledNeuroSurface object.
read_freesurfer_annot(file_name, geometry)
file_name |
Character string; path to the '.annot' file |
geometry |
A SurfaceGeometry object representing the surface structure |
This function reads binary data from a FreeSurfer annotation file, which includes vertex labels, color information, and label names. It then constructs a LabeledNeuroSurface object using this information along with the provided surface geometry.
A LabeledNeuroSurface object containing:
indices |
Integer vector of vertex indices |
data |
Numeric vector of label codes |
labels |
Character vector of label names |
cols |
Character vector of label colors in hex format |
geom <- readSurfaceGeometry("path/to/surface.gii")
labeled_surface <- read_freesurfer_annot("path/to/labels.annot", geom)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.