HabitatMap
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 HabitatMap(subject_id: str, label_array: ndarray, geometry: Geometry, model_id: str, habitat_ids: Tuple[int, ...], provenance: Provenance)[source]
Bases:
objectHabitat label image for one subject.
- label_array
Habitat id per voxel;
0denotes background.- Type:
- geometry
Grid
label_arrayrefers to.
- model_id
Identifier of the
HabitatModelthat assigned these labels. Without it, habitat ids from different runs are not comparable, which is the most common silent error in habitat studies.- Type:
- habitat_ids
Habitat ids the model can assign, in canonical order. Note that a given subject need not contain all of them.
- Type:
Tuple[int, …]
- provenance
How this map was produced.
See also
habit.viz.plot_habitat_overlayPublication overlay of this map on anatomy.
habit.contracts.HabitatModelDefinition that assigned these labels.