13 #ifndef mitkMorphologicalOperations_h
14 #define mitkMorphologicalOperations_h
97 template <
class TStructuringElement>
98 static TStructuringElement CreateStructuringElement(
StructuralElementType structuralElementFlag,
int factor);
103 template <
typename TPixel,
unsigned int VDimension>
104 static void itkClosing(itk::Image<TPixel, VDimension> *sourceImage,
105 mitk::Image::Pointer &resultImage,
109 template <
typename TPixel,
unsigned int VDimension>
110 static void itkErode(itk::Image<TPixel, VDimension> *sourceImage,
111 mitk::Image::Pointer &resultImage,
115 template <
typename TPixel,
unsigned int VDimension>
116 static void itkDilate(itk::Image<TPixel, VDimension> *sourceImage,
117 mitk::Image::Pointer &resultImage,
121 template <
typename TPixel,
unsigned int VDimension>
122 static void itkOpening(itk::Image<TPixel, VDimension> *sourceImage,
123 mitk::Image::Pointer &resultImage,
127 template <
typename TPixel,
unsigned int VDimension>
128 static void itkFillHoles(itk::Image<TPixel, VDimension> *sourceImage, mitk::Image::Pointer &resultImage);
#define MITKSEGMENTATION_EXPORT
Provides morphological operations for binary segmentation images.
static void Closing(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Performs a morphological closing on a 2D, 3D, or 3D+t segmentation image.
static void Dilate(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Performs a morphological dilation on a 2D, 3D, or 3D+t segmentation image.
static void Opening(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Performs a morphological opening on a 2D, 3D, or 3D+t segmentation image.
static void Erode(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Performs a morphological erosion on a 2D, 3D, or 3D+t segmentation image.
static void FillHoles(mitk::Image::Pointer &image)
Fills holes in a binary 2D, 3D, or 3D+t segmentation image.
StructuralElementType
Defines the type and orientation of the structuring element.
Find image slices visible on a given plane.