DenseNeuroVol
DenseNeuroVol(data, space, label='', indices=None, *, provenance=None)Dense 3D neuroimaging volume.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| data | array - like | 3D array of voxel values | required |
| space | NeuroSpace | Spatial metadata | required |
| label | str | Volume label | '' |
| indices | array - like | If provided, only these indices will be filled with data | None |
Methods
| Name | Description |
|---|---|
| as_array | Convert to numpy array. |
| as_dense | Already dense, return self. |
| as_logical | Convert to logical representation. |
| as_mask | Convert to mask. |
| as_sparse | Convert to sparse representation. |
| concat | Concatenate multiple volumes into a DenseNeuroVec along a new time dimension. |
| values | Get underlying data values. |
as_array
DenseNeuroVol.as_array()Convert to numpy array.
as_dense
DenseNeuroVol.as_dense()Already dense, return self.
as_logical
DenseNeuroVol.as_logical()Convert to logical representation.
as_mask
DenseNeuroVol.as_mask(indices=None)Convert to mask.
as_sparse
DenseNeuroVol.as_sparse(mask=None)Convert to sparse representation.
concat
DenseNeuroVol.concat(*others)Concatenate multiple volumes into a DenseNeuroVec along a new time dimension.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| *others | DenseNeuroVol | Additional volumes to concatenate. | () |
Returns
| Name | Type | Description |
|---|---|---|
| DenseNeuroVec | 4D vector containing all volumes stacked along the time axis. |
values
DenseNeuroVol.values()Get underlying data values.