"surf"
objectCoerce a file path to a surface GIFTI, a "gifti"
object, a list with
entries "pointset" and "triangle", or a "surf"
to a
"surf"
.
read_surf(surf, expected_hemisphere = NULL, resamp_res = NULL)make_surf(surf, expected_hemisphere = NULL, resamp_res = NULL)
Either a file path to a surface GIFTI; a "gifti"
read by readgii
; a list with entries "pointset" and
"triangle"; or, a "surf"
object.
The expected hemisphere ("left"
or "right"
)
of surf
. If the hemisphere indicated in the GIFTI metadata is the
opposite, an error is raised. If NULL
(default), use the GIFTI
hemisphere.
The resolution to resample the surfaces to. If NULL
(default), do not resample.
The "surf"
: a list with components "vertices"
(3D spatial locations), "faces"
(defined by three vertices), and
"hemisphere"
("left"
, "right"
, or NULL
if
unknown).
Other functions for reading in CIFTI or GIFTI data:
as.xifti()
,
info_cifti()
,
load_parc()
,
load_surf()
,
read_cifti()
,
read_xifti2()
Other functions for working with GIFTI surface geometry data:
is.surf()
,
resample_surf()
,
rotate_surf()
,
view_surf()
,
write_surf_gifti()