Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::MaskCleaningOperation Class Reference

Executes operations to clean-up 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)
 Limits a Mask to a given Range. More...
 
static Image::Pointer MaskOutlierFiltering (Image::Pointer &image, Image::Pointer &mask)
 Removes outlier from a mask. More...
 

Detailed Description

Executes operations to clean-up Masks.

It is assumed that the segmentation is of type "unsigned short"

Definition at line 26 of file mitkMaskCleaningOperation.h.

Member Function Documentation

◆ MaskOutlierFiltering()

static Image::Pointer mitk::MaskCleaningOperation::MaskOutlierFiltering ( Image::Pointer image,
Image::Pointer mask 
)
static

Removes outlier from a mask.

Removes all elements of a mask that are not within the range \( [\mu - 3 \sigma , \mu + 3 \sigma\] \)

Parameter

◆ RangeBasedMasking()

static Image::Pointer mitk::MaskCleaningOperation::RangeBasedMasking ( Image::Pointer image,
Image::Pointer mask,
bool  lowerLimitOn = false,
double  lowerLimit = 0,
bool  upperLimitOn = false,
double  upperLimit = 1 
)
static

Limits a Mask to a given Range.

Removes all elements of a mask that are not within the given range. If lowerLimitOn is true, all voxels that cover voxels with an intensity below lowerLimit will be set to 0 in the resulting mask. Similar, all voxels that cover voxels with an intensity above upperLimit will be set to 0 if upperLimitOn is true.

Parameter

  • mitk::Image::Pointer image : Grey-Scale image
  • mitk::Image::Pointer mask : Original mask
  • optional: bool lowerLimitOn : If true, voxels below lowerLimit are not masked, default false
  • optional: double lowerLimit : Lower Threshold limit, default 0
  • optional: bool upperLimitOn : If true, voxels above upperLimit are not masked, default false
  • optional: double upperLimit : Lower Threshold limit, default 1

The documentation for this class was generated from the following file: