13 #ifndef mitkMorphologicalOperations_h
14 #define mitkMorphologicalOperations_h
43 static void Closing(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
44 static void Erode(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
45 static void Dilate(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
46 static void Opening(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
53 template <
class TStructuringElement>
54 static TStructuringElement CreateStructuringElement(StructuralElementType structuralElementFlag,
int factor);
59 template <
typename TPixel,
unsigned int VDimension>
60 static void itkClosing(itk::Image<TPixel, VDimension> *sourceImage,
63 StructuralElementType structuralElement);
65 template <
typename TPixel,
unsigned int VDimension>
66 static void itkErode(itk::Image<TPixel, VDimension> *sourceImage,
69 StructuralElementType structuralElement);
71 template <
typename TPixel,
unsigned int VDimension>
72 static void itkDilate(itk::Image<TPixel, VDimension> *sourceImage,
75 StructuralElementType structuralElement);
77 template <
typename TPixel,
unsigned int VDimension>
78 static void itkOpening(itk::Image<TPixel, VDimension> *sourceImage,
81 StructuralElementType structuralElement);
83 template <
typename TPixel,
unsigned int VDimension>
84 static void itkFillHoles(itk::Image<TPixel, VDimension> *sourceImage,
mitk::Image::Pointer &resultImage);