BrainVolume {neuroim} | R Documentation |
Construct a BrainVolume
instance, using default (dense) implementation
BrainVolume(data, space, source = NULL, label = "", indices = NULL)
data |
a three-dimensional |
space |
an instance of class |
source |
an instance of class |
label |
a |
indices |
an 1D vector that gives the linear indices of the associated |
a DenseBrainVolume
instance
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)