Factory function to create a NeuroVec object from a list of NeuroVol objects. This is a convenience wrapper around the NeuroVec constructor that combines multiple 3D volumes into a single 4D NeuroVec.
Arguments
- vols
A list of
NeuroVol
objects. All volumes must have identical spatial dimensions.- mask
An optional logical array or
LogicalNeuroVol
object defining the subset of voxels to include. If provided, a SparseNeuroVec will be created.
Value
A NeuroVec
object (either DenseNeuroVec or SparseNeuroVec
depending on whether a mask is provided).