IthHabitatFeatures
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 IthHabitatFeatures(include_auxiliary: bool = False)[source]
Bases:
objectITH score for one subject’s habitat map.
The score quantifies how fragmented the habitat partition is:
1 - (1 / S_total) * sum_i(S_i,max / n_i)over connected components of each habitat. It is numerically identical to the v0.1ITHFeatureExtractor.By default the table has a single column,
ith_score. Passinclude_auxiliary=True(orSpec("ith_score", {"include_auxiliary": True})) to also write the prefixed summariesith_num_habitats/ith_total_areaand the per-habitathabitat_{id}_regions/_largest_area/_area_ratiocolumns. Those extras are emitted for every id the model can assign (zeros when the habitat is absent) so cohort tables stay rectangular. The prefixes avoid colliding withnon_radiomicsnum_habitats.- __call__(subject: Subject, habitat_map: HabitatMap) FeatureTable[source]
Compute the ITH feature family for one subject.
- Parameters:
subject – Owning subject (labels suffice; intensities unused).
habitat_map – Habitat labels for that subject.
- Returns:
One-row table. Default is
ith_scoreonly.