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_features(mask_array, image_array, *)

Calculate morphology features for prepared mask and intensity arrays.

get_feature_names()

Return the morphology feature names produced by this calculator.

get_params()

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_array where voxels outside the ROI can be represented by NaN.

  • 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

MorphologicalFeatures.get_feature_names()[source]#

Return the morphology feature names produced by this calculator.

Returns:

Feature names defined for the morphology family.

Return type:

list of str

MorphologicalFeatures.get_params()[source]#

Return the configuration parameters of this morphology calculator.

Returns:

Parameter names mapped to their configured values.

Return type:

dict