| SparseBrainVector-class {neuroim} | R Documentation |
SparseBrainVector
Description
a sparse four-dimensional brain image, backed by a matrix, where each column represents
a vector spanning the fourth dimension (e.g. time)
constructs a SparseBrainVector object
Usage
SparseBrainVector(data, space, mask, source = NULL, label = "")
Arguments
data |
an array which can be a |
space |
a BrainSpace instance |
mask |
a 3D |
source |
the data source – an instance of class |
label |
associated sub-image labels |
Slots
maskthe mask defining the sparse domain
datathe matrix of series, where rows span across voxel space and columns span the fourth dimensions
mapinstance of class
IndexLookupVolumeis used to map between spatial and index/row coordinates
Examples
bspace <- BrainSpace(c(10,10,10,100), c(1,1,1))
mask <- array(rnorm(10*10*10) > .5, c(10,10,10))
mat <- matrix(rnorm(sum(mask)), 100, sum(mask))
svec <- SparseBrainVector(mat, bspace,mask)
length(indices(svec)) == sum(mask)
[Package neuroim version 0.0.6 Index]