IndexLookupVol-class | R Documentation |
A three-dimensional brain image class that serves as a map between 1D grid indices and a table of values.
It is primarily used in the SparseNeuroVec
class.
IndexLookupVol(space, indices)
space |
A |
indices |
An integer vector containing the 1D indices of the voxels in the grid. |
An object of class IndexLookupVol
representing the index lookup volume.
An object of class IndexLookupVol
representing the index lookup volume.
space
:A NeuroSpace
object representing the 3D space of the brain image.
indices
:An integer vector containing the 1D indices of the voxels in the grid.
map
:An integer vector containing the mapping between the 1D indices and the table of values.
SparseNeuroVec
IndexLookupVol
# Create a NeuroSpace object
space <- NeuroSpace(c(2, 2, 2, 10), c(1, 1, 1))
# Create a 3D mask
mask <- array(rnorm(2 * 2 * 2) > -100, c(2, 2, 2))
# Create indices and map for the IndexLookupVol
indices <- which(mask)
map <- seq_along(indices)
# Create an IndexLookupVol object
ilv <- new("IndexLookupVol", space=space, indices=as.integer(indices))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.