MorphologyCorrelationFeatures#

class zrad.radiomics.morphology.MorphologyCorrelationFeatures(spacing)[source]#

Spatial autocorrelation descriptors for a 3D region of interest.

Moran’s I and Geary’s C summarize how intensity values vary with physical distance between ROI voxels. They are morphological features and require both a morphology mask and aligned intensity image.

Parameters:

spacing (sequence of float) – Physical voxel spacing along the three array axes.

Methods

calculate_features(mask_array, image_array)

Calculate both features jointly from aligned 3D mask and intensity arrays.

get_feature_names()

Return the morphology correlation feature names produced by this calculator.

get_params()

Return the configuration parameters of this morphology correlation calculator.

MorphologyCorrelationFeatures.calculate_features(mask_array, image_array)[source]#

Calculate both features jointly from aligned 3D mask and intensity arrays.

Nonzero mask voxels with non-NaN intensities form the population. Raw intensities are converted to float64; texture discretization is not used. Uses exact hybrid FFT/Parseval or blocked pair sums according to valid voxel count and padded bounding-box geometry. Fewer than two observations, nonfinite intensities, or zero intensity variance yield NaN for both features.

MorphologyCorrelationFeatures.get_feature_names()[source]#

Return the morphology correlation feature names produced by this calculator.

Returns:

Feature names defined for the morphology correlation family.

Return type:

list of str

MorphologyCorrelationFeatures.get_params()[source]#

Return the configuration parameters of this morphology correlation calculator.

Returns:

Parameter names mapped to their configured values.

Return type:

dict