DenseNeuroVol-class | R Documentation |
Represents a three-dimensional brain image backed by a dense array. This class
combines the spatial properties of NeuroVol
with the data
storage capabilities of an array.
Construct a DenseNeuroVol
instance
DenseNeuroVol(data, space, label = "", indices = NULL)
data |
a three-dimensional |
space |
an instance of class |
label |
a |
indices |
an optional 1-d index vector |
DenseNeuroVol objects are used for 3D brain images where most or all voxels contain meaningful data. They provide efficient access to individual voxel values and are suitable for operations that require frequent random access to voxel data.
DenseNeuroVol
instance
NeuroVol-class
, SparseNeuroVol-class
# Create a simple 3D brain volume
vol_data <- array(rnorm(64*64*64), c(64, 64, 64))
vol_space <- NeuroSpace(dim=c(64L, 64L, 64L), origin=c(0, 0, 0), spacing=c(1, 1, 1))
brain_vol <- new("DenseNeuroVol", .Data=vol_data, space=vol_space)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.