13 #ifndef mitkMorphologicalOperations_h
14 #define mitkMorphologicalOperations_h
45 static void Closing(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
46 static void Erode(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
47 static void Dilate(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
48 static void Opening(
mitk::Image::Pointer &image,
int factor, StructuralElementType structuralElement);
55 template <
class TStructuringElement>
56 static TStructuringElement CreateStructuringElement(StructuralElementType structuralElementFlag,
int factor);
61 template <
typename TPixel,
unsigned int VDimension>
62 static void itkClosing(itk::Image<TPixel, VDimension> *sourceImage,
65 StructuralElementType structuralElement);
67 template <
typename TPixel,
unsigned int VDimension>
68 static void itkErode(itk::Image<TPixel, VDimension> *sourceImage,
71 StructuralElementType structuralElement);
73 template <
typename TPixel,
unsigned int VDimension>
74 static void itkDilate(itk::Image<TPixel, VDimension> *sourceImage,
77 StructuralElementType structuralElement);
79 template <
typename TPixel,
unsigned int VDimension>
80 static void itkOpening(itk::Image<TPixel, VDimension> *sourceImage,
83 StructuralElementType structuralElement);
85 template <
typename TPixel,
unsigned int VDimension>
86 static void itkFillHoles(itk::Image<TPixel, VDimension> *sourceImage,
mitk::Image::Pointer &resultImage);