#include <mitkDilateTool.h>
Public Types | |
typedef DilateTool | Self |
typedef MorphologicTool | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual const char * | GetName () const |
Returns the name of this tool. Make it short! | |
virtual const char ** | GetXPM () const |
Returns an icon in the XPM format. | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
DilateTool () | |
virtual | ~DilateTool () |
mitk::Image::Pointer | ApplyFilter (mitk::Image::Pointer image) |
Protected Attributes | |
BallType | m_Ball |
BallDilateFilterType::Pointer | m_BallDilateFilter |
Definition at line 16 of file mitkDilateTool.h.
typedef itk::SmartPointer<const Self> mitk::DilateTool::ConstPointer |
Reimplemented from mitk::MorphologicTool.
Definition at line 25 of file mitkDilateTool.h.
typedef itk::SmartPointer<Self> mitk::DilateTool::Pointer |
Reimplemented from mitk::MorphologicTool.
Definition at line 25 of file mitkDilateTool.h.
typedef DilateTool mitk::DilateTool::Self |
Reimplemented from mitk::MorphologicTool.
Definition at line 25 of file mitkDilateTool.h.
Reimplemented from mitk::MorphologicTool.
Definition at line 25 of file mitkDilateTool.h.
mitk::DilateTool::DilateTool | ( | ) | [protected] |
Definition at line 8 of file mitkDilateTool.cpp.
{ }
mitk::DilateTool::~DilateTool | ( | ) | [protected, virtual] |
Definition at line 12 of file mitkDilateTool.cpp.
{ }
mitk::Image::Pointer mitk::DilateTool::ApplyFilter | ( | mitk::Image::Pointer | image ) | [protected, virtual] |
Reimplemented from mitk::MorphologicTool.
Definition at line 27 of file mitkDilateTool.cpp.
References mitk::CastToItkImage(), mitk::CastToMitkImage(), and mitk::Image::New().
{ SegmentationType::Pointer itkImage = SegmentationType::New(); mitk::CastToItkImage(image, itkImage); m_Ball.SetRadius( m_Radius); m_Ball.CreateStructuringElement(); m_BallDilateFilter = BallDilateFilterType::New(); m_BallDilateFilter->SetKernel(m_Ball); m_BallDilateFilter->SetInput(itkImage); m_BallDilateFilter->SetDilateValue(1); m_BallDilateFilter->UpdateLargestPossibleRegion(); mitk::Image::Pointer new_image = mitk::Image::New(); mitk::CastToMitkImage(m_BallDilateFilter->GetOutput(), new_image); return new_image; }
virtual const char* mitk::DilateTool::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::MorphologicTool.
const char * mitk::DilateTool::GetName | ( | ) | const [virtual] |
Returns the name of this tool. Make it short!
This name has to fit into some kind of button in most applications, so take some time to think of a good name!
Implements mitk::Tool.
Definition at line 17 of file mitkDilateTool.cpp.
{ return "Dilate Tool"; }
const char ** mitk::DilateTool::GetXPM | ( | ) | const [virtual] |
Returns an icon in the XPM format.
This icon has to fit into some kind of button in most applications, so make it smaller than 25x25 pixels.
XPM is e.g. supported by The Gimp. But if you open any XPM file in your text editor, you will see that you could also "draw" it with an editor.
Implements mitk::Tool.
Definition at line 22 of file mitkDilateTool.cpp.
{
return mitkDilateTool_xpm;
}
static Pointer mitk::DilateTool::New | ( | ) | [static] |
BallType mitk::DilateTool::m_Ball [protected] |
Definition at line 38 of file mitkDilateTool.h.
BallDilateFilterType::Pointer mitk::DilateTool::m_BallDilateFilter [protected] |
Definition at line 39 of file mitkDilateTool.h.