ciftiTools (version 0.1.6.0)

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

Description

Format a "surf" object or a list with elements "pointset" and "triangle" as a "gifti" object 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" object 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" object