neurovol

neurovol(data, space, label='', indices=None)

Create a NeuroVol object.

Factory function that creates the appropriate NeuroVol subclass based on the input data.

Parameters

Name Type Description Default
data array - like Volume data required
space NeuroSpace Spatial metadata required
label str Volume label ''
indices array - like For sparse volumes, the indices of non-zero values None

Returns

Name Type Description
NeuroVol DenseNeuroVol, SparseNeuroVol, or LogicalNeuroVol
Back to top