ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkParametricPath.h>
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.
Definition at line 60 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< Self > | Pointer |
typedef ParametricPath | Self |
typedef Path< double, ContinuousIndex< double, VDimension >, VDimension > | Superclass |
typedef Vector< double, VDimension > | VectorType |
Public Types inherited from itk::Path< double, ContinuousIndex< double, VDimension >, VDimension > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Index< VDimension > | IndexType |
typedef double | InputType |
typedef Offset< VDimension > | OffsetType |
typedef ContinuousIndex < double, VDimension > | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef Path | Self |
typedef DataObject | Superclass |
Public Types inherited from itk::DataObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef std::string | DataObjectIdentifierType |
typedef std::vector< Pointer > ::size_type | DataObjectPointerArraySizeType |
typedef SmartPointer< Self > | Pointer |
typedef DataObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Protected Member Functions | |
ParametricPath () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
~ParametricPath () | |
Protected Member Functions inherited from itk::Path< double, ContinuousIndex< double, VDimension >, VDimension > | |
virtual IndexType | GetZeroIndex () const |
virtual OffsetType | GetZeroOffset () const |
Path () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
~Path () | |
Protected Member Functions inherited from itk::DataObject | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
InputType | m_DefaultInputStepSize |
Private Member Functions | |
void | operator= (const Self &) |
ParametricPath (const Self &) | |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::DataObject | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static void | SetGlobalReleaseDataFlag (bool val) |
Static Public Attributes inherited from itk::Path< double, ContinuousIndex< double, VDimension >, VDimension > | |
static const unsigned int | PathDimension |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
typedef SmartPointer< const Self > itk::ParametricPath< VDimension >::ConstPointer |
Definition at line 68 of file itkParametricPath.h.
typedef ContinuousIndex< double, VDimension > itk::ParametricPath< VDimension >::ContinuousIndexType |
All paths must be mapable to index space
Definition at line 80 of file itkParametricPath.h.
typedef Index< VDimension > itk::ParametricPath< VDimension >::IndexType |
Definition at line 81 of file itkParametricPath.h.
typedef Superclass::InputType itk::ParametricPath< VDimension >::InputType |
Input type
Definition at line 71 of file itkParametricPath.h.
typedef Offset< VDimension > itk::ParametricPath< VDimension >::OffsetType |
Definition at line 82 of file itkParametricPath.h.
typedef Superclass::OutputType itk::ParametricPath< VDimension >::OutputType |
Output type
Definition at line 77 of file itkParametricPath.h.
typedef SmartPointer< Self > itk::ParametricPath< VDimension >::Pointer |
Definition at line 67 of file itkParametricPath.h.
typedef ParametricPath itk::ParametricPath< VDimension >::Self |
Standard class typedefs.
Definition at line 65 of file itkParametricPath.h.
typedef Path< double, ContinuousIndex< double, VDimension >, VDimension > itk::ParametricPath< VDimension >::Superclass |
Definition at line 66 of file itkParametricPath.h.
typedef Vector< double, VDimension > itk::ParametricPath< VDimension >::VectorType |
Definition at line 83 of file itkParametricPath.h.
|
protected |
|
inlineprotected |
Definition at line 119 of file itkParametricPath.h.
|
private |
|
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 should 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::PolyLineParametricPath< VDimension >, and itk::FourierSeriesPath< VDimension >.
|
virtual |
Return the nearest index to the parametric path at the specified location. This is a wrapper to Evaluate().
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Path< double, ContinuousIndex< double, VDimension >, VDimension >.
Reimplemented in itk::FourierSeriesPath< VDimension >, itk::PolyLineParametricPath< VDimension >, and itk::OrthogonallyCorrected2DParametricPath.
|
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.
Reimplemented in itk::PolyLineParametricPath< VDimension >.
|
private |
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::DataObject.
Reimplemented in itk::PolyLineParametricPath< VDimension >.
|
virtual |
|
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 132 of file itkParametricPath.h.