Go to the documentation of this file.00001 #ifndef MITKERODETOOL_H
00002 #define MITKERODETOOL_H
00003
00004 #include "mitkMorphologicTool.h"
00005 #include "MitkExtExports.h"
00006
00007
00008 #include <itkBinaryBallStructuringElement.h>
00009 #include <itkBinaryCrossStructuringElement.h>
00010 #include <itkBinaryDilateImageFilter.h>
00011
00012 #include "mitkDilateTool.xpm"
00013
00014 namespace mitk {
00015
00016 class MitkExt_EXPORT DilateTool : 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::BinaryDilateImageFilter< SegmentationType, SegmentationType, BallType > BallDilateFilterType;
00022 typedef itk::BinaryDilateImageFilter< SegmentationType, SegmentationType, CrossType > CrossDilateFilterType;
00023
00024 public:
00025 mitkClassMacro(DilateTool, MorphologicTool);
00026 itkNewMacro(DilateTool);
00027
00028 virtual const char* GetName() const;
00029 virtual const char** GetXPM() const;
00030
00031 protected:
00032
00033 DilateTool();
00034 virtual ~DilateTool();
00035
00036 mitk::Image::Pointer ApplyFilter(mitk::Image::Pointer image);
00037
00038 BallType m_Ball;
00039 BallDilateFilterType::Pointer m_BallDilateFilter;
00040
00041 };
00042
00043
00044 }
00045
00046 #endif