Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ParametricPath< VDimension > Class Template Reference
[Path Representation Objects]

#include <itkParametricPath.h>

Inheritance diagram for itk::ParametricPath< VDimension >:

Inheritance graph
[legend]
Collaboration diagram for itk::ParametricPath< VDimension >:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Represent a parametric path through ND Space.

This virtual class is intended to represent a parametric path through an image. A parametric path maps a single floating-point 1D parameter (usually designated as either time or arc-length) to a floating-point ND point in continuous image index space. This mapping is done via the abstract Evaluate() method, which must be overridden in all instantiable subclasses. Parametric paths are required to be continuous. They may be open or form a closed loop. A parametric path may cross itself several times, although the end point is constrained to have a unique spatial location unless it is shared with and only with the starting point (a path tracing the number "9," starting at the bottom and ending in the middle of the right side, would therefore be illegal). Classic applications of this class include the representation of contours in 2D images and path smoothing. Another use of a path is to guide the movement of an iterator through an image.

See also:
EllipseParametricPath

PolyLineParametricPath

FourierSeriesPath

OrthogonallyCorrectedParametricPath

ChainCodePath

Path

ContinuousIndex

Index

Offset

Vector

Definition at line 61 of file itkParametricPath.h.

Public Types

typedef SmartPointer< const
Self
ConstPointer
typedef ContinuousIndex< double,
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, ContinuousIndex<
double, VDimension >, VDimension > 
Superclass
typedef Vector< double, VDimension > VectorType

Public Member Functions

virtual InputType EndOfInput () const
virtual OutputType Evaluate (const InputType &input) const =0
virtual VectorType EvaluateDerivative (const InputType &input) const
virtual IndexType EvaluateToIndex (const InputType &input) const
virtual const InputTypeGetDefaultInputStepSize ()
virtual const char * GetNameOfClass () const
virtual OffsetType IncrementInput (InputType &input) const
 itkStaticConstMacro (PathDimension, unsigned int, VDimension)
virtual void SetDefaultInputStepSize (InputType _arg)
virtual InputType StartOfInput () const

Protected Member Functions

virtual IndexType GetZeroIndex () const
virtual OffsetType GetZeroOffset () const
 ParametricPath ()
 Path ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~ParametricPath ()

Protected Attributes

InputType m_DefaultInputStepSize


Member Typedef Documentation

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

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 69 of file itkParametricPath.h.

template<unsigned int VDimension>
typedef ContinuousIndex<double,VDimension> itk::ParametricPath< VDimension >::ContinuousIndexType
 

All paths must be mapable to index space

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 82 of file itkParametricPath.h.

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

All paths must be mapable to index space

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 83 of file itkParametricPath.h.

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

Input type

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 72 of file itkParametricPath.h.

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

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 84 of file itkParametricPath.h.

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

Output type

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 78 of file itkParametricPath.h.

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

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 68 of file itkParametricPath.h.

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

Standard class typedefs.

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 66 of file itkParametricPath.h.

template<unsigned int VDimension>
typedef Path<double,ContinuousIndex<double,VDimension>,VDimension> itk::ParametricPath< VDimension >::Superclass
 

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 67 of file itkParametricPath.h.

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 85 of file itkParametricPath.h.


Constructor & Destructor Documentation

template<unsigned int VDimension>
itk::ParametricPath< VDimension >::ParametricPath  )  [protected]
 

template<unsigned int VDimension>
itk::ParametricPath< VDimension >::~ParametricPath  )  [inline, protected]
 

Definition at line 123 of file itkParametricPath.h.


Member Function Documentation

virtual InputType itk::Path< double , ContinuousIndex< double, VDimension > , VDimension >::EndOfInput  )  const [inline, virtual, inherited]
 

Where does the path end (what is the last valid input value)? This value is sometimes used by IncrementInput() to go to the end of a path.

Reimplemented in itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

Definition at line 86 of file itkPath.h.

virtual OutputType itk::Path< double , ContinuousIndex< double, VDimension > , VDimension >::Evaluate const InputType input  )  const [pure virtual, inherited]
 

Evaluate the path at specified location along the path. Return data is the path's "natural" format.

Implemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

template<unsigned int VDimension>
virtual VectorType itk::ParametricPath< VDimension >::EvaluateDerivative const InputType input  )  const [virtual]
 

Evaluate the first derivative of the ND output with respect to the 1D input. This is a very simple and naive numerical derivative, and it sould be overloaded with a proper closed-form derivative function in all children. Nevertheless, users who need to create their own parametric classes for their private research need not reimplement this function if their work does not need the derivative operator.

Reimplemented in itk::FourierSeriesPath< VDimension >.

template<unsigned int VDimension>
virtual IndexType itk::ParametricPath< VDimension >::EvaluateToIndex const InputType input  )  const [virtual]
 

Return the nearest index to the parametric path at the specified location. This is a wrapper to Evaluate().

Implements itk::Path< double, ContinuousIndex< double, VDimension >, VDimension >.

template<unsigned int VDimension>
virtual const InputType& itk::ParametricPath< VDimension >::GetDefaultInputStepSize  )  [virtual]
 

template<unsigned int VDimension>
virtual const char* itk::ParametricPath< VDimension >::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

virtual IndexType itk::Path< double , ContinuousIndex< double, VDimension > , VDimension >::GetZeroIndex  )  const [protected, virtual, inherited]
 

virtual OffsetType itk::Path< double , ContinuousIndex< double, VDimension > , VDimension >::GetZeroOffset  )  const [protected, virtual, inherited]
 

template<unsigned int VDimension>
virtual OffsetType itk::ParametricPath< VDimension >::IncrementInput InputType input  )  const [virtual]
 

Increment the input variable passed by reference such that the ND index of the path moves to its next vertex-connected (8-connected in 2D) neighbor. Return the Index-space offset of the path from its prior input to its new input. If the path is unable to increment, input is not changed and an offset of Zero is returned. Children are not required to implement bounds checking.

This is a fairly slow, iterative algorithm that numerically converges to the next index along the path, in a vertex-connected (8-connected in 2D) fashion. When possible, children of this class should overload this function with something more efficient.

WARNING: This default implementation REQUIRES that the ND endpoint of the path be either unique or coincident only with the startpoint, since it uses the endpoint as a stopping condition.

Implements itk::Path< double, ContinuousIndex< double, VDimension >, VDimension >.

itk::Path< double , ContinuousIndex< double, VDimension > , VDimension >::itkStaticConstMacro PathDimension  ,
unsigned  int,
VDimension 
[inherited]
 

Path dimension. The dimension of a path is fixed at construction.

itk::Path< double , ContinuousIndex< double, VDimension > , VDimension >::Path  )  [protected, inherited]
 

template<unsigned int VDimension>
void itk::ParametricPath< VDimension >::PrintSelf std::ostream &  os,
Indent  indent
const [protected]
 

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

Reimplemented in itk::FourierSeriesPath< VDimension >, itk::OrthogonallyCorrected2DParametricPath, and itk::PolyLineParametricPath< VDimension >.

template<unsigned int VDimension>
virtual void itk::ParametricPath< VDimension >::SetDefaultInputStepSize InputType  _arg  )  [virtual]
 

virtual InputType itk::Path< double , ContinuousIndex< double, VDimension > , VDimension >::StartOfInput  )  const [inline, virtual, inherited]
 

Where does the path begin? For most types of paths, the path will begin at zero. This value can be overridden in children, and is necessary for iterators to know how to go to the beginning of a path.

Reimplemented in itk::OrthogonallyCorrected2DParametricPath.

Definition at line 79 of file itkPath.h.


Member Data Documentation

template<unsigned int VDimension>
InputType itk::ParametricPath< VDimension >::m_DefaultInputStepSize [protected]
 

Default 1D input increment amount to trace along the path. Also, the value used by the defualt implementation of EvaluateDerivative() for numerically approximating the derivative with the change over a single default-sized step. (NOTE that the default implementation of EvaluateDerivative() should never be used in practice, but users or lazzy developers may nevertheless unwisely choose to do so anyway.) For integer- input-types, 1 is probably the correct value. For double-input-types, either 1 or 0.1 are probably good values. This value should be set in the constructor of all instantiable children. Values set in child constructors overwrite values set in parent constructors.

Definition at line 136 of file itkParametricPath.h.


The documentation for this class was generated from the following file:
Generated at Sun Jul 9 21:04:36 2006 for ITK by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2000