ITK  4.12.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::PolyLineParametricPath< VDimension > Class Template Reference

#include <itkPolyLineParametricPath.h>

+ Inheritance diagram for itk::PolyLineParametricPath< VDimension >:
+ Collaboration diagram for itk::PolyLineParametricPath< VDimension >:

Detailed Description

template<unsigned int VDimension>
class itk::PolyLineParametricPath< VDimension >

Represent a path of line segments through ND Space.

This class is intended to represent parametric paths through an image, where the paths are composed of line segments. Each line segment traverses one unit of input. A classic application of this class is the representation of contours in 2D images, especially when the contours only need to be approximately correct. Another use of a path is to guide the movement of an iterator through an image.

See Also
EllipseParametricPath
FourierSeriesPath
OrthogonallyCorrectedParametricPath
ParametricPath
ChainCodePath
Path
ContinuousIndex
Index
Offset
Vector
Wiki Examples:
Examples:
Examples/DataRepresentation/Path/PolyLineParametricPath1.cxx, and WikiExamples/Curves/PolyLineParametricPath.cxx.

Definition at line 56 of file itkPolyLineParametricPath.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::ContinuousIndexType 
ContinuousIndexType
 
typedef Index< VDimension > IndexType
 
typedef Superclass::InputType InputType
 
typedef Offset< VDimension > OffsetType
 
typedef Superclass::OutputType OutputType
 
typedef SmartPointer< SelfPointer
 
typedef Point< double, VDimension > PointType
 
typedef PolyLineParametricPath Self
 
typedef ParametricPath
< VDimension > 
Superclass
 
typedef Vector< double,
VDimension > 
VectorType
 
typedef VertexListType::Pointer VertexListPointer
 
typedef VectorContainer
< unsigned, VertexType
VertexListType
 
typedef ContinuousIndexType VertexType
 
- Public Types inherited from itk::ParametricPath< VDimension >
typedef SmartPointer< const SelfConstPointer
 
typedef ContinuousIndex
< SpacePrecisionType,
VDimension > 
ContinuousIndexType
 
typedef Index< VDimension > IndexType
 
typedef Superclass::InputType InputType
 
typedef Offset< VDimension > OffsetType
 
typedef Superclass::OutputType OutputType
 
typedef SmartPointer< SelfPointer
 
typedef ParametricPath Self
 
typedef Path< double,
ContinuousIndexType,
VDimension > 
Superclass
 
typedef Vector< double,
VDimension > 
VectorType
 
- Public Types inherited from itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >
typedef SmartPointer< const SelfConstPointer
 
typedef Index< VDimension > IndexType
 
typedef double InputType
 
typedef Offset< VDimension > OffsetType
 
typedef ContinuousIndex
< SpacePrecisionType,
VDimension > 
OutputType
 
typedef SmartPointer< SelfPointer
 
typedef Path Self
 
typedef DataObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual InputType EndOfInput () const override
 
virtual OutputType Evaluate (const InputType &input) const override
 
virtual VectorType EvaluateDerivative (const InputType &input) const override
 
virtual VertexListTypeGetModifiableVertexList ()
 
virtual const char * GetNameOfClass () const
 
virtual const VertexListTypeGetVertexList () const
 
virtual OffsetType IncrementInput (InputType &input) const override
 
virtual void Initialize (void) override
 
void AddVertex (const ContinuousIndexType &vertex)
 
- Public Member Functions inherited from itk::ParametricPath< VDimension >
virtual IndexType EvaluateToIndex (const InputType &input) const override
 
virtual const InputTypeGetDefaultInputStepSize () const
 
virtual void SetDefaultInputStepSize (InputType _arg)
 
- Public Member Functions inherited from itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >
virtual OutputType Evaluate (const InputType &input) const =0
 
virtual IndexType EvaluateToIndex (const InputType &input) const =0
 
virtual OffsetType IncrementInput (InputType &input) const =0
 
virtual InputType StartOfInput () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 PolyLineParametricPath ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~PolyLineParametricPath ()
 
- Protected Member Functions inherited from itk::ParametricPath< VDimension >
 ParametricPath ()
 
 ~ParametricPath ()
 
- Protected Member Functions inherited from itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >
virtual IndexType GetZeroIndex () const
 
virtual OffsetType GetZeroOffset () const
 
 Path ()
 
 ~Path ()
 

Private Attributes

VertexListPointer m_VertexList
 

Additional Inherited Members

- Static Public Attributes inherited from itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >
static const unsigned int PathDimension
 
- Protected Attributes inherited from itk::ParametricPath< VDimension >
InputType m_DefaultInputStepSize
 

Member Typedef Documentation

template<unsigned int VDimension>
typedef SmartPointer< const Self > itk::PolyLineParametricPath< VDimension >::ConstPointer

Definition at line 64 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef Superclass::ContinuousIndexType itk::PolyLineParametricPath< VDimension >::ContinuousIndexType

Basic data-structure types used

Definition at line 76 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef Index< VDimension > itk::PolyLineParametricPath< VDimension >::IndexType

Definition at line 77 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef Superclass::InputType itk::PolyLineParametricPath< VDimension >::InputType

Input type

Definition at line 67 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef Offset< VDimension > itk::PolyLineParametricPath< VDimension >::OffsetType

Definition at line 78 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef Superclass::OutputType itk::PolyLineParametricPath< VDimension >::OutputType

Output type

Definition at line 73 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef SmartPointer< Self > itk::PolyLineParametricPath< VDimension >::Pointer

Definition at line 63 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef Point< double, VDimension > itk::PolyLineParametricPath< VDimension >::PointType

Definition at line 79 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef PolyLineParametricPath itk::PolyLineParametricPath< VDimension >::Self

Standard class typedefs.

Definition at line 61 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef ParametricPath< VDimension > itk::PolyLineParametricPath< VDimension >::Superclass

Definition at line 62 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef Vector< double, VDimension > itk::PolyLineParametricPath< VDimension >::VectorType

Definition at line 80 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef VertexListType::Pointer itk::PolyLineParametricPath< VDimension >::VertexListPointer

Definition at line 83 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef VectorContainer< unsigned, VertexType > itk::PolyLineParametricPath< VDimension >::VertexListType

Definition at line 82 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
typedef ContinuousIndexType itk::PolyLineParametricPath< VDimension >::VertexType

Definition at line 81 of file itkPolyLineParametricPath.h.

Constructor & Destructor Documentation

template<unsigned int VDimension>
itk::PolyLineParametricPath< VDimension >::PolyLineParametricPath ( )
protected
template<unsigned int VDimension>
itk::PolyLineParametricPath< VDimension >::~PolyLineParametricPath ( )
inlineprotected

Definition at line 136 of file itkPolyLineParametricPath.h.

Member Function Documentation

template<unsigned int VDimension>
void itk::PolyLineParametricPath< VDimension >::AddVertex ( const ContinuousIndexType vertex)
inline

Evaluate the first derivative of the ND output with respect to the 1D input. This is an exact, algebraic function. Add a vertex (and a connecting line segment to the previous vertex). Adding a vertex has the additional effect of extending the domain of the PolyLineParametricPath by 1.0 (each pair of consecutive verticies is separated by one unit of input).

Definition at line 96 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
virtual::itk::LightObject::Pointer itk::PolyLineParametricPath< VDimension >::CreateAnother ( ) const
template<unsigned int VDimension>
virtual InputType itk::PolyLineParametricPath< VDimension >::EndOfInput ( ) const
inlineoverridevirtual

Where does the path end? This value is necessary for IncrementInput() to know how to go to the end of a path. Since each line segment covers one unit of input, this is the number of verticies - 1.

Reimplemented from itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >.

Definition at line 106 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
virtual OutputType itk::PolyLineParametricPath< VDimension >::Evaluate ( const InputType input) const
overridevirtual

Return the location of the parametric path at the specified location.

template<unsigned int VDimension>
virtual VectorType itk::PolyLineParametricPath< VDimension >::EvaluateDerivative ( const InputType input) const
overridevirtual

This function overrides the superclass EvaluateDerivative and instead calculates the instantaneous derivative of input by taking the index of the previous and next integral timepoints and subtracting them

Reimplemented from itk::ParametricPath< VDimension >.

template<unsigned int VDimension>
virtual VertexListType* itk::PolyLineParametricPath< VDimension >::GetModifiableVertexList ( )
virtual

Return the container of Vertices as a const object.

template<unsigned int VDimension>
virtual const char* itk::PolyLineParametricPath< VDimension >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ParametricPath< VDimension >.

template<unsigned int VDimension>
virtual const VertexListType* itk::PolyLineParametricPath< VDimension >::GetVertexList ( ) const
virtual
template<unsigned int VDimension>
virtual OffsetType itk::PolyLineParametricPath< VDimension >::IncrementInput ( InputType input) const
overridevirtual

This function overrides the superclass IncrementInput and calculates the next pixel along the path to visit by using the instantaneous partial derivatives to calculate the timestep needed to move along the path by one pixel

Reimplemented from itk::ParametricPath< VDimension >.

template<unsigned int VDimension>
virtual void itk::PolyLineParametricPath< VDimension >::Initialize ( void  )
inlineoverridevirtual

Needed for Pipelining

Definition at line 115 of file itkPolyLineParametricPath.h.

template<unsigned int VDimension>
static Pointer itk::PolyLineParametricPath< VDimension >::New ( )
static

New() method for dynamic construction

template<unsigned int VDimension>
void itk::PolyLineParametricPath< VDimension >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

Reimplemented from itk::ParametricPath< VDimension >.

Member Data Documentation

template<unsigned int VDimension>
VertexListPointer itk::PolyLineParametricPath< VDimension >::m_VertexList
private

Definition at line 140 of file itkPolyLineParametricPath.h.


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