ROISurface: Create an instance of class 'ROISurface'

View source: R/ROI.R

ROISurfaceR Documentation

Create an instance of class ROISurface

Description

Create an instance of class ROISurface

Usage

ROISurface(geometry, indices, data)

Arguments

geometry

the parent geometry: an instance of class SurfaceGeometry

indices

the parent surface indices

data

the data values, numeric vector

Value

an instance of class ROISurface

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")

ROISurface(geom, 1L, 1)

try(ROISurface(geom, 4L, 1))
try(ROISurface(geom, 1.5, 1))


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