|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Provides static methods for cleaning and filtering segmentation masks. More...
#include <mitkMaskCleaningOperation.h>
Static Public Member Functions | |
| static Image::Pointer | RangeBasedMasking (Image::Pointer &image, Image::Pointer &mask, bool lowerLimitOn=false, double lowerLimit=0, bool upperLimitOn=false, double upperLimit=1) |
| Remove mask voxels where the corresponding image intensity is outside a given range. More... | |
| static Image::Pointer | MaskOutlierFiltering (Image::Pointer &image, Image::Pointer &mask) |
| Remove mask voxels where image intensities are statistical outliers. More... | |
Provides static methods for cleaning and filtering segmentation masks.
The MaskCleaningOperation class provides operations to refine binary segmentation masks based on the intensity values of a corresponding grey-scale image. Supported operations include range-based masking (removing mask voxels outside a specified intensity range) and statistical outlier filtering (removing mask voxels where intensities fall outside three standard deviations from the mean).
It is assumed that the segmentation mask is of type "unsigned short".
Definition at line 35 of file mitkMaskCleaningOperation.h.
|
static |
Remove mask voxels where image intensities are statistical outliers.
Computes the mean ( \(\mu\)) and standard deviation ( \(\sigma\)) of the image intensities within the masked region, then removes all mask voxels where the corresponding image intensity falls outside the range \([\mu - 3\sigma, \mu + 3\sigma]\).
Internally delegates to RangeBasedMasking() with the computed statistical bounds.
| [in] | image | Grey-scale image providing the intensity values for outlier detection. |
| [in] | mask | Original binary mask (unsigned short) defining the region of interest. |
|
static |
Remove mask voxels where the corresponding image intensity is outside a given range.
For each voxel in the mask, the corresponding intensity in the grey-scale image is checked against optional lower and upper thresholds. If the intensity falls outside the active threshold bounds, the mask voxel is set to 0.
| [in] | image | Grey-scale image providing the intensity values for threshold comparison. |
| [in] | mask | Original binary mask (unsigned short) to be filtered. |
| [in] | lowerLimitOn | If true, mask voxels covering intensities below lowerLimit are set to 0. Default: false. |
| [in] | lowerLimit | The lower intensity threshold. Only used when lowerLimitOn is true. Default: 0. |
| [in] | upperLimitOn | If true, mask voxels covering intensities above upperLimit are set to 0. Default: false. |
| [in] | upperLimit | The upper intensity threshold. Only used when upperLimitOn is true. Default: 1. |