LocalIntensityFeatures#
- class zrad.radiomics.intensity.LocalIntensityFeatures(spacing)[source]#
Local intensity peak features derived from the ROI and surrounding image.
Local and global intensity peaks are calculated from spherical neighbourhoods around high-intensity ROI voxels. The neighbourhood radius is defined in millimetres, so image spacing is required.
- Parameters:
spacing (sequence of float) – Physical voxel spacing used to convert the IBSI neighbourhood radius to image coordinates.
Methods
|
Calculate local intensity features for prepared image arrays. |
Return the local intensity feature names produced by this calculator. |
|
Return the configuration parameters of this local intensity calculator. |
- LocalIntensityFeatures.calculate_features(image_array, masked_image_array)[source]#
Calculate local intensity features for prepared image arrays.
- Parameters:
image_array (numpy.ndarray) – Full prepared intensity image used to evaluate local neighbourhoods.
masked_image_array (numpy.ndarray) – ROI-masked version of
image_arraywith voxels outside the ROI set toNaN.
- Returns:
Mapping of local intensity feature names to calculated values.
- Return type:
dict