as.surf_gifti: Format surface data as a '"gifti"'

View source: R/as.gifti.R

as.surf_giftiR Documentation

Format surface data as a "gifti"

Description

Format a "surf" or a list with elements "pointset" and "triangle" as a "gifti" using a template "gifti". The brain hemisphere (left or right) must be indicated.

Usage

as.surf_gifti(surf, hemisphere = c("left", "right"))

Arguments

surf

A "surf" or a list with elements "pointset" and "triangle"

hemisphere

The side of the brain the surface represents: "left" (default) or "right". Used to fill the "AnatomicalStructurePrimary" metadata field. Only used if surf$hemisphere is NULL.

Value

The "gifti"


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.