13 #ifndef mitkMorphologicalOperations_h
14 #define mitkMorphologicalOperations_h
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,
67 template <
typename TPixel,
unsigned int VDimension>
68 static void itkErode(itk::Image<TPixel, VDimension> *sourceImage,
73 template <
typename TPixel,
unsigned int VDimension>
74 static void itkDilate(itk::Image<TPixel, VDimension> *sourceImage,
79 template <
typename TPixel,
unsigned int VDimension>
80 static void itkOpening(itk::Image<TPixel, VDimension> *sourceImage,
85 template <
typename TPixel,
unsigned int VDimension>
86 static void itkFillHoles(itk::Image<TPixel, VDimension> *sourceImage,
mitk::Image::Pointer &resultImage);
#define MITKSEGMENTATION_EXPORT
Encapsulates several morphological operations that can be performed on segmentations....
static void Closing(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Perform morphological operation on 2D, 3D or 3D+t segmentation.
static void Dilate(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Perform morphological operation on 2D, 3D or 3D+t segmentation.
static void Opening(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Perform morphological operation on 2D, 3D or 3D+t segmentation.
static void Erode(mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
Perform morphological operation on 2D, 3D or 3D+t segmentation.
static void FillHoles(mitk::Image::Pointer &image)
Perform morphological operation on 2D, 3D or 3D+t segmentation.
Find image slices visible on a given plane.