Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitk::ContourModelSubDivisionFilter Class Reference

This filter interpolates a subdivision curve between control points of the contour. For inserting subpoints Dyn-Levin-Gregory (DLG) interpolation scheme is used. Interpolating a cruve subdivision is done by: F2i = Ci F2i+1 = -1/16Ci-1 + 9/16Ci + 9/16Ci+1 - 1/16Ci+2. More...

#include <mitkContourModelSubDivisionFilter.h>

Inheritance diagram for mitk::ContourModelSubDivisionFilter:
Collaboration diagram for mitk::ContourModelSubDivisionFilter:

Public Types

typedef ContourModel OutputType
 
typedef OutputType::Pointer OutputTypePointer
 
typedef mitk::ContourModel InputType
 
- Public Types inherited from mitk::ContourModelSource
typedef ContourModel OutputType
 
typedef OutputType::Pointer OutputTypePointer
 
- 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 (ContourModelSubDivisionFilter, ContourModelSource)
 
Pointer Clone () const
 
void SetNumberOfIterations (int iterations)
 Set the number of iterations for inserting new interpolated control points. More...
 
virtual void SetInput (const InputType *input)
 
virtual void SetInput (unsigned int idx, const InputType *input)
 
const InputTypeGetInput (void)
 
const InputTypeGetInput (unsigned int idx)
 
- Public Member Functions inherited from mitk::ContourModelSource
 mitkClassMacro (ContourModelSource, BaseDataSource)
 
Pointer Clone () const
 
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
- Public Member Functions inherited from mitk::BaseDataSource
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
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::ContourModelSource
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::BaseDataSource
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 ContourModelSubDivisionFilter ()
 
 ~ContourModelSubDivisionFilter () override
 
void GenerateOutputInformation () override
 
void GenerateData () override
 
- Protected Member Functions inherited from mitk::ContourModelSource
 ContourModelSource ()
 
 ~ContourModelSource () override
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
 ~BaseDataSource () override
 

Protected Attributes

int m_InterpolationIterations
 

Additional Inherited Members

- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 

Detailed Description

This filter interpolates a subdivision curve between control points of the contour. For inserting subpoints Dyn-Levin-Gregory (DLG) interpolation scheme is used. Interpolating a cruve subdivision is done by: F2i = Ci F2i+1 = -1/16Ci-1 + 9/16Ci + 9/16Ci+1 - 1/16Ci+2.

The number of interpolation iterations can be set via SetNumberOfIterations(int) which are 4 by default.

Definition at line 35 of file mitkContourModelSubDivisionFilter.h.

Member Typedef Documentation

◆ InputType

◆ OutputType

◆ OutputTypePointer

Constructor & Destructor Documentation

◆ ContourModelSubDivisionFilter()

mitk::ContourModelSubDivisionFilter::ContourModelSubDivisionFilter ( )
protected

◆ ~ContourModelSubDivisionFilter()

mitk::ContourModelSubDivisionFilter::~ContourModelSubDivisionFilter ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer mitk::ContourModelSubDivisionFilter::Clone ( ) const

◆ GenerateData()

void mitk::ContourModelSubDivisionFilter::GenerateData ( )
overrideprotected

◆ GenerateOutputInformation()

void mitk::ContourModelSubDivisionFilter::GenerateOutputInformation ( )
inlineoverrideprotected

Definition at line 66 of file mitkContourModelSubDivisionFilter.h.

◆ GetInput() [1/2]

const InputType* mitk::ContourModelSubDivisionFilter::GetInput ( unsigned int  idx)

◆ GetInput() [2/2]

const InputType* mitk::ContourModelSubDivisionFilter::GetInput ( void  )

◆ mitkClassMacro()

mitk::ContourModelSubDivisionFilter::mitkClassMacro ( ContourModelSubDivisionFilter  ,
ContourModelSource   
)

◆ New()

static Pointer mitk::ContourModelSubDivisionFilter::New ( )
static

◆ SetInput() [1/2]

virtual void mitk::ContourModelSubDivisionFilter::SetInput ( const InputType input)
virtual

◆ SetInput() [2/2]

virtual void mitk::ContourModelSubDivisionFilter::SetInput ( unsigned int  idx,
const InputType input 
)
virtual

◆ SetNumberOfIterations()

void mitk::ContourModelSubDivisionFilter::SetNumberOfIterations ( int  iterations)
inline

Set the number of iterations for inserting new interpolated control points.

Definition at line 50 of file mitkContourModelSubDivisionFilter.h.

Member Data Documentation

◆ m_InterpolationIterations

int mitk::ContourModelSubDivisionFilter::m_InterpolationIterations
protected

Definition at line 70 of file mitkContourModelSubDivisionFilter.h.


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