A class representing a sparse four-dimensional brain image, backed by a matrix
, where each column represents a non-zero vector spanning the fourth dimension (e.g., time) and defined by a volumetric mask. SparseNeuroVec objects store their data in a compressed format, providing efficient storage and access to sparse brain images. This class inherits from the NeuroVec
, AbstractSparseNeuroVec
, and implements the ArrayLike4D
interface.
Constructs a SparseNeuroVec object for efficient representation and manipulation of sparse neuroimaging data with many zero or missing values.
Arguments
- data
A matrix or a 4-D array containing the neuroimaging data. The dimensions of the data should be consistent with the dimensions of the provided NeuroSpace object and mask.
- space
A NeuroSpace object representing the dimensions and voxel spacing of the neuroimaging data.
- mask
A 3D array, 1D vector of type logical, or an instance of type LogicalNeuroVol, which specifies the locations of the non-zero values in the data.
Value
A SparseNeuroVec object, containing the sparse neuroimaging data, mask, and associated NeuroSpace information.