MorphologicalFeatures#
- class zrad.radiomics.morphology.MorphologicalFeatures(spacing)[source]#
Morphological and shape descriptors for a 3D region of interest.
Features describe ROI volume, surface area, compactness, principal axes, convex-hull density, and related shape measures. Calculations use physical voxel spacing so outputs are expressed in image-world units where applicable.
- Parameters:
spacing (sequence of float) – Physical voxel spacing along the three array axes.
Methods
|
Calculate morphology features for prepared mask and intensity arrays. |
Return the morphology feature names produced by this calculator. |
|
Return the configuration parameters of this morphology calculator. |
- MorphologicalFeatures.calculate_features(mask_array, image_array, *, include_correlation=True)[source]#
Calculate morphology features for prepared mask and intensity arrays.
- Parameters:
mask_array (numpy.ndarray) – Prepared binary ROI mask array.
image_array (numpy.ndarray) – Prepared intensity image aligned with
mask_arraywhere voxels outside the ROI can be represented byNaN.include_correlation (bool, default=True) – Include the joint Moran’s I and Geary’s C calculation.
- Returns:
Mapping of morphology feature names to calculated values.
- Return type:
dict