NeuroVol: Construct a NeuroVol object

View source: R/neurovol.R

NeuroVolR Documentation

Construct a NeuroVol object

Description

Construct a NeuroVol instance, using default (dense) implementation

Usage

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

Arguments

data

a three-dimensional array

space

an instance of class NeuroSpace

label

a character string to identify volume

indices

an 1D vector that gives the linear indices of the associated data vector

Value

a DenseNeuroVol instance

Examples

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

bbuchsbaum/neuroim2 documentation built on April 20, 2024, 4:20 p.m.