#include <itkPolyLineParametricPath.h>
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.
Definition at line 57 of file itkPolyLineParametricPath.h.
Public Member Functions | |
virtual::itk::LightObject::Pointer | CreateAnother () const |
InputType | EndOfInput () const override |
OutputType | Evaluate (const InputType &input) const override |
VectorType | EvaluateDerivative (const InputType &input) const override |
virtual VertexListType * | GetModifiableVertexList () |
const char * | GetNameOfClass () const override |
virtual const VertexListType * | GetVertexList () const |
OffsetType | IncrementInput (InputType &input) const override |
void | Initialize () override |
void | AddVertex (const ContinuousIndexType &vertex) |
![]() | |
IndexType | EvaluateToIndex (const InputType &input) const override |
virtual const InputType & | GetDefaultInputStepSize () const |
virtual void | SetDefaultInputStepSize (InputType _arg) |
![]() | |
virtual InputType | StartOfInput () const |
![]() | |
virtual void | CopyInformation (const DataObject *) |
virtual void | DataHasBeenGenerated () |
void | DisconnectPipeline () |
bool | GetDataReleased () const |
virtual const bool & | GetReleaseDataFlag () const |
SmartPointer< ProcessObject > | GetSource () const |
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
const DataObjectIdentifierType & | GetSourceOutputName () const |
virtual ModifiedTimeType | GetUpdateMTime () const |
virtual void | Graft (const DataObject *) |
virtual void | PrepareForNewData () |
virtual void | PropagateRequestedRegion () |
void | ReleaseData () |
virtual void | ReleaseDataFlagOff () |
virtual void | ReleaseDataFlagOn () |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
virtual void | ResetPipeline () |
void | SetReleaseDataFlag (bool flag) |
virtual void | SetRequestedRegion (const DataObject *) |
virtual void | SetRequestedRegionToLargestPossibleRegion () |
bool | ShouldIReleaseData () const |
virtual void | Update () |
virtual void | UpdateOutputData () |
virtual void | UpdateOutputInformation () |
void | UpdateSource () const |
virtual bool | VerifyRequestedRegion () |
void | SetPipelineMTime (ModifiedTimeType time) |
virtual const ModifiedTimeType & | GetPipelineMTime () const |
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
virtual const RealTimeStamp & | GetRealTimeStamp () const |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static Pointer | New () |
static void | SetGlobalReleaseDataFlag (bool val) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
PolyLineParametricPath () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~PolyLineParametricPath () override=default | |
![]() | |
ParametricPath () | |
~ParametricPath () override=default | |
![]() | |
virtual IndexType | GetZeroIndex () const |
virtual OffsetType | GetZeroOffset () const |
Path () | |
~Path () override=default | |
![]() | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () override | |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
![]() | |
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 () |
Private Attributes | |
VertexListPointer | m_VertexList {} |
Additional Inherited Members | |
![]() | |
static constexpr unsigned int | PathDimension |
![]() | |
InputType | m_DefaultInputStepSize {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::PolyLineParametricPath< VDimension >::ConstPointer = SmartPointer<const Self> |
Definition at line 66 of file itkPolyLineParametricPath.h.
using itk::ParametricPath< VDimension >::ContinuousIndexType |
All paths must be mappable to index space
Definition at line 72 of file itkParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::IndexType = Index<VDimension> |
Definition at line 79 of file itkPolyLineParametricPath.h.
using itk::Path< double, ContinuousIndexType, VDimension >::InputType |
using itk::PolyLineParametricPath< VDimension >::OffsetType = Offset<VDimension> |
Definition at line 80 of file itkPolyLineParametricPath.h.
using itk::Path< double, ContinuousIndexType, VDimension >::OutputType |
using itk::PolyLineParametricPath< VDimension >::Pointer = SmartPointer<Self> |
Definition at line 65 of file itkPolyLineParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::PointType = Point<double, VDimension> |
Definition at line 81 of file itkPolyLineParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::Self = PolyLineParametricPath |
Standard class type aliases.
Definition at line 63 of file itkPolyLineParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::Superclass = ParametricPath<VDimension> |
Definition at line 64 of file itkPolyLineParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::VectorType = Vector<double, VDimension> |
Definition at line 82 of file itkPolyLineParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::VertexListPointer = typename VertexListType::Pointer |
Definition at line 85 of file itkPolyLineParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::VertexListType = VectorContainer<unsigned int, VertexType> |
Definition at line 84 of file itkPolyLineParametricPath.h.
using itk::PolyLineParametricPath< VDimension >::VertexType = ContinuousIndexType |
Definition at line 83 of file itkPolyLineParametricPath.h.
|
protected |
|
overrideprotecteddefault |
|
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 vertices is separated by one unit of input).
Definition at line 100 of file itkPolyLineParametricPath.h.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
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 vertices - 1.
Reimplemented from itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >.
Definition at line 111 of file itkPolyLineParametricPath.h.
|
overridevirtual |
Return the location of the parametric path at the specified location.
Implements itk::Path< double, ContinuousIndex< SpacePrecisionType, VDimension >, VDimension >.
|
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 >.
|
virtual |
Return the container of Vertices as a const object.
|
overridevirtual |
Reimplemented from itk::ParametricPath< VDimension >.
|
virtual |
|
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 >.
|
inlineoverridevirtual |
Needed for Pipelining
Reimplemented from itk::DataObject.
Definition at line 121 of file itkPolyLineParametricPath.h.
|
static |
New() method for dynamic construction
|
overrideprotectedvirtual |
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::ParametricPath< VDimension >.
|
private |
Definition at line 149 of file itkPolyLineParametricPath.h.