Description Usage Arguments Value Examples
Construct a BrainVolume
instance, using default (dense) implementation
1 2 |
data |
an optional one- or three-dimensional |
refvol |
an instance of class |
source |
an optional instance of class |
label |
an optional |
indices |
an optional 1d vector of indices in to the 3d space |
DenseBrainVolume
instance
1 2 3 4 5 6 7 8 9 | 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")
bvol2 <- makeVolume(dat, bvol)
all.equal(as.array(bvol),as.array(bvol2))
data <- 1:10
indices = seq(1,1000, length.out=10)
bvol3 <- makeVolume(data,bvol,indices=indices)
sum(bvol3) == sum(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.