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 both features jointly from aligned 3D mask and intensity arrays. |
Return the morphology correlation feature names produced by this calculator. |
|
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.