Learn R Programming

neuroim (version 0.0.6)

BrainVolume: BrainVolume

Description

Construct a BrainVolume instance, using default (dense) implementation

Usage

BrainVolume(data, space, source = NULL, label = "", indices = NULL)

Arguments

data
a three-dimensional array
space
an instance of class BrainSpace
source
an instance of class BrainSource
label
a character string to identify volume
indices
an 1D vector that gives the linear indices of the associated data vector

Value

a DenseBrainVolume instance

Examples

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

Run the code above in your browser using DataLab