IntensityMaskBuilder#

class zrad.preprocessing.roi.IntensityMaskBuilder[source]#

Build the intensity ROI image used by intensity-based feature families.

The builder keeps the morphological mask binary, selects the current feature image, writes an intensity_mask whose voxels outside the ROI are set to NaN, and clears any prepared texture or IVH images. This mirrors the IBSI distinction between morphology and intensity masks.

This class has no constructor parameters.

Methods

apply(roi_data)

Return ROI data with intensity_mask built from the feature image.

get_params()

Return intensity-mask-building parameters.

IntensityMaskBuilder.apply(roi_data)[source]#

Return ROI data with intensity_mask built from the feature image.

Parameters:

roi_data (RoiData) – ROI data containing image and morphological_mask. If filtered_image is present, its voxel values are used inside the intensity ROI.

Returns:

roi_data – New ROI data with a binary morphological_mask and an intensity_mask image containing feature-image values inside the ROI and NaN outside it.

Return type:

RoiData

IntensityMaskBuilder.get_params()[source]#

Return intensity-mask-building parameters.

Returns:

params – Empty dictionary because this class has no constructor parameters.

Return type:

dict