ROISurfaceVector: Create an instance of class 'ROISurfaceVector'

View source: R/ROI.R

ROISurfaceVectorR Documentation

Create an instance of class ROISurfaceVector

Description

Create an instance of class ROISurfaceVector

Usage

ROISurfaceVector(geometry, indices, data)

Arguments

geometry

the parent geometry: an instance of class SurfaceGeometry

indices

the parent surface indices

data

the data values, a matrix

Value

an instance of class ROISurfaceVector

Examples


verts <- matrix(c(0,0,0,
                  1,0,0,
                  0,1,0), ncol=3, byrow=TRUE)
faces <- matrix(c(1,2,3), ncol=3, byrow=TRUE)
geom <- SurfaceGeometry(verts, faces, "lh")

vec <- matrix(c(0.5, 1.5), nrow=1)
ROISurfaceVector(geom, c(1L,2L), vec)

try(ROISurfaceVector(geom, c(1L,4L), vec))
try(ROISurfaceVector(geom, c(1,2.5), vec))


bbuchsbaum/neurosurf documentation built on June 10, 2025, 8:22 p.m.