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

Calculate local intensity features for prepared image arrays.

get_feature_names()

Return the local intensity feature names produced by this calculator.

get_params()

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_array with voxels outside the ROI set to NaN.

Returns:

Mapping of local intensity feature names to calculated values.

Return type:

dict

LocalIntensityFeatures.get_feature_names()[source]#

Return the local intensity feature names produced by this calculator.

Returns:

Feature names defined for the local intensity family.

Return type:

list of str

LocalIntensityFeatures.get_params()[source]#

Return the configuration parameters of this local intensity calculator.

Returns:

Parameter names mapped to their configured values.

Return type:

dict