Learn R Programming

neuroim2 (version 0.8.5)

NeuroVol: NeuroVol: 3D Neuroimaging Volume Class

Description

The NeuroVol class encapsulates 3D volumetric neuroimaging data. It provides methods for accessing slices, performing spatial transformations, and integrating with the spatial reference provided by NeuroSpace.

Usage

NeuroVol(data, space, label = "", indices = NULL)

Value

A NeuroVol object.

Arguments

data

A 3D array containing the volumetric data.

space

An object of class NeuroSpace defining the spatial properties.

label

A character string providing a label for the volume (default: "").

indices

An optional vector of indices for sparse representation (default: NULL).

Examples

Run this code
bspace <- NeuroSpace(c(64,64,64), spacing=c(1,1,1))
dat <- array(rnorm(64*64*64), c(64,64,64))
bvol <- NeuroVol(dat,bspace, label="test")

Run the code above in your browser using DataLab