NonRadiomicsHabitatFeatures
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 NonRadiomicsHabitatFeatures[source]
Bases:
objectBasic spatial features of one subject’s habitat map.
Per habitat: the number of disconnected (face-connected) regions and the habitat’s volume fraction of the whole ROI, computed by the L0 kernels
habitat_region_stats()andhabitat_volume_fractions(). These are numerically identical to the v0.1BasicFeatureExtractor(whose SimpleITKConnectedComponentran withSetFullyConnected(False), i.e. the same face connectivity).Columns keep the v0.1 CSV scheme (
num_habitats,{id}_num_regions,{id}_volume_ratio) and, like every v1 family, are emitted for every id the model can assign – zeros when the habitat is absent from this subject – so cohort tables never have ragged columns.- __call__(subject: Subject, habitat_map: HabitatMap) FeatureTable[source]
Compute the non-radiomics feature family for one subject.
- Parameters:
subject – Owning subject (labels suffice; intensities unused).
habitat_map – Habitat labels for that subject.
- Returns:
One-row table with region counts and volume ratios per habitat.