Non-radiomics Morphology
Output
habitat_basic_features.csv
Definition
Morphological statistics derived from the habitat label map L(\mathbf{x}) (voxel label; 0 = background). No PyRadiomics intensity features are used.
Formula
Connected components use SimpleITK ConnectedComponent with SetFullyConnected(False) (6-connectivity in 3D).
The exported CSV uses fixed column indices 1 … K where K = n_habitats from
config (or auto-detected habitats.csv), not necessarily the distinct labels
present in each subject’s map. Per-subject num_habitats counts distinct labels
in that map and may differ from K.
Output columns
Column |
Description |
|---|---|
|
Number of distinct habitat labels (> 0) in this subject’s map |
|
Face-connected component count for label k (0 if absent) |
|
Fraction of tumor voxels with label k (0 if absent) |
Implementation
habit/core/habitat_analysis/habitat_features/basic_features.py