Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ImageToContourFilter Class Reference

A filter that can extract contours out of a 2D binary image. More...

#include <mitkImageToContourFilter.h>

Inheritance diagram for mitk::ImageToContourFilter:
Collaboration diagram for mitk::ImageToContourFilter:

Public Types

typedef itk::PolyLineParametricPath< 2 > PolyLineParametricPath2D
 
typedef PolyLineParametricPath2D::VertexListType ContourPath
 
- Public Types inherited from mitk::ImageToSurfaceFilter
enum  DecimationType { NoDecimation, DecimatePro, QuadricDecimation }
 
typedef ImageToSurfaceFilter Self
 
typedef SurfaceSource Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::SurfaceSource
typedef SurfaceSource Self
 
typedef BaseDataSource Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef Surface OutputType
 
- Public Types inherited from mitk::BaseDataSource
typedef BaseDataSource Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef BaseData OutputType
 
typedef itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
 

Public Member Functions

 mitkClassMacro (ImageToContourFilter, ImageToSurfaceFilter)
 
Pointer Clone () const
 
virtual void SetSliceGeometry (BaseGeometry *_arg)
 Set macro for the geometry of the slice. If it is not set explicitly the geometry will be taken from the slice. More...
 
void SetUseProgressBar (bool)
 Set whether the mitkProgressBar should be used. More...
 
void SetProgressStepSize (unsigned int stepSize)
 Set the stepsize which the progress bar should proceed. More...
 
- Public Member Functions inherited from mitk::ImageToSurfaceFilter
virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
const mitk::ImageGetInput (void)
 
virtual void SetInput (const mitk::Image *image)
 
void SetSmoothIteration (int smoothIteration)
 
void SetSmoothRelaxation (float smoothRelaxation)
 
virtual void SetThreshold (ScalarType _arg)
 
virtual ScalarType GetThreshold () const
 
virtual void SetSmooth (bool _arg)
 
virtual void SmoothOn ()
 
virtual void SmoothOff ()
 
virtual bool GetSmooth () const
 
virtual DecimationType GetDecimate () const
 
virtual void SetDecimate (DecimationType _arg)
 
virtual void SetTargetReduction (float _arg)
 
virtual float GetTargetReduction () const
 
template<class T1 , class T2 , class T3 >
void mitkVtkLinearTransformPoint (T1 matrix[4][4], T2 in[3], T3 out[3])
 
- Public Member Functions inherited from mitk::SurfaceSource
Pointer Clone () const
 
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
virtual itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
- Public Member Functions inherited from mitk::BaseDataSource
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual void GraftOutput (OutputType *output)
 Graft the specified BaseData onto this BaseDataSource's output. More...
 
virtual void GraftOutput (const DataObjectIdentifierType &key, OutputType *output)
 
virtual void GraftNthOutput (unsigned int idx, OutputType *output)
 Graft the specified base data object onto this BaseDataSource's idx'th output. More...
 
bool Updating () const
 Access itk::ProcessObject::m_Updating. More...
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::ImageToSurfaceFilter
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::SurfaceSource
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::BaseDataSource
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 ImageToContourFilter ()
 
virtual ~ImageToContourFilter ()
 
virtual void GenerateData () override
 
virtual void GenerateOutputInformation () override
 
- Protected Member Functions inherited from mitk::ImageToSurfaceFilter
 ImageToSurfaceFilter ()
 
virtual ~ImageToSurfaceFilter ()
 
void CreateSurface (int time, vtkImageData *vtkimage, mitk::Surface *surface, const ScalarType threshold)
 
- Protected Member Functions inherited from mitk::SurfaceSource
 SurfaceSource ()
 
virtual ~SurfaceSource ()
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
virtual ~BaseDataSource ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 
- Protected Attributes inherited from mitk::ImageToSurfaceFilter
bool m_Smooth
 
DecimationType m_Decimate
 
ScalarType m_Threshold
 
float m_TargetReduction
 
int m_SmoothIteration
 
float m_SmoothRelaxation
 

Detailed Description

A filter that can extract contours out of a 2D binary image.

This class takes an 2D mitk::Image as input and extracts all contours which are drawn it. The contour extraction is done by using the itk::ContourExtractor2DImageFilter.

The output is a mitk::Surface.

Author
fetzer

Definition at line 45 of file mitkImageToContourFilter.h.

Member Typedef Documentation

typedef PolyLineParametricPath2D::VertexListType mitk::ImageToContourFilter::ContourPath

Definition at line 61 of file mitkImageToContourFilter.h.

typedef itk::PolyLineParametricPath<2> mitk::ImageToContourFilter::PolyLineParametricPath2D

Definition at line 57 of file mitkImageToContourFilter.h.

Constructor & Destructor Documentation

mitk::ImageToContourFilter::ImageToContourFilter ( )
protected

Definition at line 28 of file mitkImageToContourFilter.cpp.

mitk::ImageToContourFilter::~ImageToContourFilter ( )
protectedvirtual

Definition at line 34 of file mitkImageToContourFilter.cpp.

Member Function Documentation

Pointer mitk::ImageToContourFilter::Clone ( ) const
void mitk::ImageToContourFilter::GenerateData ( )
overrideprotectedvirtual

For each image time slice a surface will be created. This method is called by Update().

Reimplemented from mitk::ImageToSurfaceFilter.

Definition at line 38 of file mitkImageToContourFilter.cpp.

References AccessFixedDimensionByItk, mitk::ImageToSurfaceFilter::GetInput(), mitk::ProgressBar::GetInstance(), MITK_ERROR, and mitk::ProgressBar::Progress().

void mitk::ImageToContourFilter::GenerateOutputInformation ( void  )
overrideprotectedvirtual

Initializes the output information ( i.e. the geometry information ) of the output of the filter

Reimplemented from mitk::ImageToSurfaceFilter.

Definition at line 144 of file mitkImageToContourFilter.cpp.

mitk::ImageToContourFilter::mitkClassMacro ( ImageToContourFilter  ,
ImageToSurfaceFilter   
)
static Pointer mitk::ImageToContourFilter::New ( )
static
void mitk::ImageToContourFilter::SetProgressStepSize ( unsigned int  stepSize)

Set the stepsize which the progress bar should proceed.

Parameter The stepsize for progressing

Definition at line 154 of file mitkImageToContourFilter.cpp.

virtual void mitk::ImageToContourFilter::SetSliceGeometry ( BaseGeometry _arg)
virtual

Set macro for the geometry of the slice. If it is not set explicitly the geometry will be taken from the slice.

Parameter The slice`s geometry

void mitk::ImageToContourFilter::SetUseProgressBar ( bool  status)

Set whether the mitkProgressBar should be used.

Parameter true for using the progress bar, false otherwise

Definition at line 149 of file mitkImageToContourFilter.cpp.


The documentation for this class was generated from the following files: