Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
MaskImageFilter Class Reference

Mask an image with a mask. More...

#include <mitkitkMaskImageFilter.h>

Detailed Description

Mask an image with a mask.

This class is templated over the types of the input image type, the mask image type and the type of the output image. Numeric conversions (castings) are done by the C++ defaults.

The pixel type of the input 2 image must have a valid definition of the operator != with zero. This condition is required because internally this filter will perform the operation

if pixel_from_mask_image == masking_value
pixel_output_image = pixel_input_image
else
pixel_output_image = outside_value

The pixel from the input 1 is cast to the pixel type of the output image.

Note that the input and the mask images must be of the same size.

See also
MaskNegatedImageFilter

{ImageProcessing/MaskImageFilter,Apply a mask to an image}


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