ArrayImageRef
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class ArrayImageRef(array: ndarray, geometry: Geometry)[source]
Bases:
objectIn-memory
ImageRefbacked by a NumPy array.This is the reference implementation for custom lazy references: it holds the array plus its geometry and materialises trivially.
- array
Voxel values, NumPy axis order
(z, y, x).- Type:
- geometry
Spatial definition of
array.
- load_volume(*, modality: str | None = None) ImageVolume[source]
Materialise directly as an
ImageVolume.