ROIVol: Create ROI Volume Object

View source: R/roi.R

ROIVolR Documentation

Create ROI Volume Object

Description

Creates an ROIVol object representing a set of values at specific 3D coordinates within a spatial reference system.

Usage

ROIVol(space, coords, data)

Arguments

space

A NeuroSpace object defining the spatial reference

coords

A matrix with 3 columns representing (x,y,z) coordinates

data

A numeric vector of values corresponding to each coordinate

Details

ROI Volume

Value

An ROIVol object

Examples

space <- NeuroSpace(c(64,64,64))
coords <- matrix(c(1,2,3, 4,5,6), ncol=3, byrow=TRUE)
data <- c(1.5, 2.5)
roi_vol <- ROIVol(space, coords, data)


bbuchsbaum/neuroim2 documentation built on Feb. 26, 2025, 3:49 p.m.