Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
A filter that reduces the number of points of contours represented by a mitk::Surface. More...
#include <mitkReduceContourSetFilter.h>
Classes | |
struct | LineSegment |
Public Types | |
enum | Reduction_Type { NTH_POINT, DOUGLAS_PEUCKER } |
Public Types inherited from mitk::SurfaceToSurfaceFilter | |
typedef SurfaceToSurfaceFilter | Self |
typedef mitk::SurfaceSource | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::DataObject::Pointer | DataObjectPointer |
Public Types inherited from mitk::SurfaceSource | |
typedef SurfaceSource | Self |
typedef BaseDataSource | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef Surface | OutputType |
Public Types inherited from mitk::BaseDataSource | |
typedef BaseDataSource | Self |
typedef itk::ProcessObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef BaseData | OutputType |
typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Public Member Functions | |
mitkClassMacro (ReduceContourSetFilter, SurfaceToSurfaceFilter) | |
Pointer | Clone () const |
virtual void | SetMinSpacing (double _arg) |
virtual void | SetMaxSpacing (double _arg) |
virtual void | SetReductionType (Reduction_Type _arg) |
virtual void | SetStepSize (unsigned int _arg) |
virtual void | SetTolerance (double _arg) |
virtual unsigned int | GetNumberOfPointsAfterReduction () |
void | Reset () |
void | SetUseProgressBar (bool) |
Set whether the mitkProgressBar should be used. More... | |
virtual void | SetInput (const mitk::Surface *surface) |
virtual void | SetInput (unsigned int idx, const mitk::Surface *surface) |
Add a new input at the given index (idx) Calls mitk::Surface::CreateOutputForInput(idx) More... | |
void | SetProgressStepSize (unsigned int stepSize) |
Set the stepsize which the progress bar should proceed. More... | |
Public Member Functions inherited from mitk::SurfaceToSurfaceFilter | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual const mitk::Surface * | GetInput () |
virtual const mitk::Surface * | GetInput (unsigned int idx) |
virtual void | CreateOutputForInput (unsigned int idx) |
Create a new output for the input at idx. More... | |
virtual void | CreateOutputsForAllInputs () |
Creates outputs for all existing inputs. More... | |
virtual void | RemoveInputs (mitk::Surface *surface) |
Public Member Functions inherited from mitk::SurfaceSource | |
Pointer | Clone () const |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (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 | |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (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::SurfaceToSurfaceFilter | |
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 | |
ReduceContourSetFilter () | |
virtual | ~ReduceContourSetFilter () |
virtual void | GenerateData () override |
virtual void | GenerateOutputInformation () override |
Protected Member Functions inherited from mitk::SurfaceToSurfaceFilter | |
SurfaceToSurfaceFilter () | |
virtual | ~SurfaceToSurfaceFilter () |
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 () |
A filter that reduces the number of points of contours represented by a mitk::Surface.
The type of the reduction can be set via SetReductionType. The two ways provided by this filter is the
Stepsize and error tolerance can be set via SetStepSize and SetTolerance.
Additional if more than one input contour is provided this filter tries detect contours which occur just because of an intersection. These intersection contours are eliminated. In oder to ensure a correct elimination the min and max spacing of the original image must be provided.
The output is a mitk::Surface.
Definition at line 56 of file mitkReduceContourSetFilter.h.
Enumerator | |
---|---|
NTH_POINT | |
DOUGLAS_PEUCKER |
Definition at line 59 of file mitkReduceContourSetFilter.h.
|
protected |
Definition at line 19 of file mitkReduceContourSetFilter.cpp.
References DOUGLAS_PEUCKER, and mitk::Surface::New().
|
protectedvirtual |
Definition at line 35 of file mitkReduceContourSetFilter.cpp.
Pointer mitk::ReduceContourSetFilter::Clone | ( | ) | const |
|
overrideprotectedvirtual |
Definition at line 50 of file mitkReduceContourSetFilter.cpp.
References mitk::ProgressBar::GetInstance(), mitk::Surface::GetVtkPolyData(), mitk::Surface::New(), mitk::New(), and mitk::ProgressBar::Progress().
|
overrideprotectedvirtual |
Definition at line 494 of file mitkReduceContourSetFilter.cpp.
|
virtual |
mitk::ReduceContourSetFilter::mitkClassMacro | ( | ReduceContourSetFilter | , |
SurfaceToSurfaceFilter | |||
) |
|
static |
void mitk::ReduceContourSetFilter::Reset | ( | void | ) |
Definition at line 499 of file mitkReduceContourSetFilter.cpp.
References mitk::Surface::New().
|
virtual |
Reimplemented from mitk::SurfaceToSurfaceFilter.
Definition at line 45 of file mitkReduceContourSetFilter.cpp.
|
virtual |
Add a new input at the given index (idx) Calls mitk::Surface::CreateOutputForInput(idx)
idx | the index of the input, which must be incremental |
surface | the input which should be added |
Reimplemented from mitk::SurfaceToSurfaceFilter.
Definition at line 39 of file mitkReduceContourSetFilter.cpp.
|
virtual |
|
virtual |
void mitk::ReduceContourSetFilter::SetProgressStepSize | ( | unsigned int | stepSize | ) |
Set the stepsize which the progress bar should proceed.
Parameter The stepsize for progressing
Definition at line 520 of file mitkReduceContourSetFilter.cpp.
|
virtual |
|
virtual |
|
virtual |
void mitk::ReduceContourSetFilter::SetUseProgressBar | ( | bool | status | ) |
Set whether the mitkProgressBar should be used.
Parameter true for using the progress bar, false otherwise
Definition at line 515 of file mitkReduceContourSetFilter.cpp.