Skip to contents

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.

Usage

IndexLookupVol(space, indices)

Arguments

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.

Value

An object of class IndexLookupVol representing the index lookup volume.

An object of class IndexLookupVol representing the index lookup volume.

Slots

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.

See also

SparseNeuroVec

IndexLookupVol

Examples

# 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))