Go to the documentation of this file.00001 #ifndef MITKClOSINGTOOL_H
00002 #define MITKClOSINGTOOL_H
00003
00004 #include "mitkMorphologicTool.h"
00005 #include "MitkExtExports.h"
00006
00007
00008 #include <itkBinaryBallStructuringElement.h>
00009 #include <itkBinaryCrossStructuringElement.h>
00010 #include <V:\windows\source\ITK3160\Code\Review\itkBinaryMorphologicalClosingImageFilter.h>
00011
00012 #include "mitkClosingTool.xpm"
00013
00014 namespace mitk {
00015
00016 class MitkExt_EXPORT ClosingTool : public MorphologicTool {
00017
00018 typedef itk::Image< unsigned char, 3 > SegmentationType;
00019 typedef itk::BinaryBallStructuringElement< SegmentationType::PixelType, 3 > BallType;
00020 typedef itk::BinaryCrossStructuringElement< SegmentationType::PixelType, 3 > CrossType;
00021 typedef itk::BinaryMorphologicalClosingImageFilter< SegmentationType, SegmentationType, BallType > BallClosingFilterType;
00022
00023
00024 public:
00025 mitkClassMacro(ClosingTool, MorphologicTool);
00026 itkNewMacro(ClosingTool);
00027
00028 virtual const char* GetName() const;
00029 virtual const char** GetXPM() const;
00030
00031 protected:
00032
00033 ClosingTool();
00034 virtual ~ClosingTool();
00035
00036 mitk::Image::Pointer ApplyFilter(mitk::Image::Pointer image);
00037
00038 BallType m_Ball;
00039 BallClosingFilterType::Pointer m_BallClosingFilter;
00040
00041 };
00042
00043
00044 }
00045
00046 #endif