read_surf_geometry | R Documentation |
This function loads a supported surface geometry from a file and returns a SurfaceGeometry object.
read_surf_geometry(surface_name)
surface_name |
A character string specifying the name of the file containing the surface geometry. |
This function supports loading surface geometries from the following file formats:
Freesurfer ASCII (.asc)
Freesurfer binary
GIFTI (.gii)
The appropriate loader is automatically selected based on the file extension or content.
A SurfaceGeometry
object representing the loaded surface.
## Not run:
# Load a FreeSurfer surface
lh_surface <- read_surf_geometry("lh.pial")
# Load a GIFTI surface
rh_surface <- read_surf_geometry("rh.white.gii")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.