Go to the documentation of this file.00001 #ifndef MITKOPENINGTOOL_H
00002 #define MITKOPENINGTOOL_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\itkBinaryMorphologicalOpeningImageFilter.h>
00011
00012 #include "mitkOpeningTool.xpm"
00013
00014 namespace mitk {
00015
00016 class MitkExt_EXPORT OpeningTool : 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::BinaryMorphologicalOpeningImageFilter< SegmentationType, SegmentationType, BallType > BallOpeningFilterType;
00022
00023
00024 public:
00025 mitkClassMacro(OpeningTool, MorphologicTool);
00026 itkNewMacro(OpeningTool);
00027
00028 virtual const char* GetName() const;
00029 virtual const char** GetXPM() const;
00030
00031 protected:
00032
00033 OpeningTool();
00034 virtual ~OpeningTool();
00035
00036 mitk::Image::Pointer ApplyFilter(mitk::Image::Pointer image);
00037
00038 BallType m_Ball;
00039 BallOpeningFilterType::Pointer m_BallOpeningFilter;
00040
00041 };
00042
00043
00044 }
00045
00046 #endif