WholeHabitatRadiomicsFeatures

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 WholeHabitatRadiomicsFeatures(params_file: str | None = None, params: Dict[str, Any] | None = None, use_torch_radiomics: str | bool = False, torch_device: str = 'auto', torch_dtype: str = 'float64')[source]

Bases: object

PyRadiomics features of the habitat map treated as the image itself.

The multi-label habitat map plays BOTH roles: it is the intensity image (habitat ids as grey values) and, binarised, the ROI mask. This is the v1 form of the v0.1 whole_habitat feature type, replicating HabitatRadiomicsExtractor.extract_radiomics_features_for_whole_habitat; it is the family that quantifies the SHAPE of the habitat partition (sphericity, surface area, …) rather than the underlying intensity.

Column names are the bare PyRadiomics feature names with diagnostic entries dropped, matching the v0.1 whole_habitat_radiomics.csv.

__init__(params_file: str | None = None, params: Dict[str, Any] | None = None, use_torch_radiomics: str | bool = False, torch_device: str = 'auto', torch_dtype: str = 'float64') → None[source]
property spec: Spec

Return the algorithm specification.

__call__(subject: Subject, habitat_map: HabitatMap) → FeatureTable[source]

Compute the whole-habitat radiomics family for one subject.

Parameters:
  • subject – Owning subject (labels suffice; intensities unused).

  • habitat_map – Habitat labels; used as image and, binarised, mask.

Returns:

One-row table of PyRadiomics features of the habitat map.

Examples using habit.habitat_features.WholeHabitatRadiomicsFeatures

Whole-habitat radiomics

Whole-habitat radiomics