ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath > Class Template Reference

#include <itkArrivalFunctionToPathFilter.h>

Detailed Description

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
class itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >

Extracts a path from a Fast Marching arrival function.

This filter extracts the geodesic (minimal) path between the given end-point and a start-point (which is implicitly embedded in the given arrival function). The path is extracted by back-propagating perpendicular to the Fast Marching front from the end-point to the global minimum of the arrival function (ie. the start-point). A step-wise optimizer is used to perform the back-propagation.

The user must provide the following:

  1. A real-valued arrival function as the filter input
  2. At least one path end point. The arrival function must be a real-valued (float or double) image in the range [0,inf). If multiple end points are given, multiple paths are extracted and saved to separate filter outputs.

A cost function optimizer may also be provided. If an optimizer is not given, a RegularStepGradientDescentOptimizer is created with default settings. The optimizer is responsible for tracking from the given end-point to the embedded start-point. This filter listens for the optimizer Iteration event and stores the current position as a point in the current path. Therefore, only step-wise optimizers (which report their intermediate position at each iteration) are suitable for extracting the path. Current suitable optimizers include: RegularStepGradientDescentOptimizer, GradientDescentOptimizer, and IterateNeighborhoodOptimizer.

The TerminationValue parameter prevents unwanted oscillations when closing in on the start-point. The optimizer is terminated when the current arrival value is less than TerminationValue; the smaller the value, the closer the path will get to the start-point. The default is 1.0. It is recommended that your optimizer has a small step size when TerminationValue is small.

This filter is based on the methods described in: [1] J. Sethian. Level Set Methods and Fast Marching Methods, chapter 20. Cambridge Press, 2nd edition, 1999. [2] J. Andrews and J. Sethian. Fast marching methods for the continuous traveling salesman problem. Proceedings of the National Academy of Sciences (PNAS), 104(4):1118/1123, 2007.

Author
Dan Mueller, Queensland University of Technology, dan.muel[at]gmail.com

Definition at line 143 of file itkArrivalFunctionToPathFilter.h.

+ Inheritance diagram for itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >:
+ Collaboration diagram for itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >:

Public Types

using CommandType = ArrivalFunctionToPathCommand<Self>
 
using ConstPointer = SmartPointer<const Self>
 
using ContinuousIndexType = ContinuousIndex<double, InputImageDimension>
 
using CostFunctionType = SingleImageCostFunction<InputImageType>
 
using DefaultOptimizerType = RegularStepGradientDescentOptimizer
 
using IndexType = Index<InputImageDimension>
 
using InputImageConstPointer = typename InputImageType::ConstPointer
 
using InputImagePixelType = typename InputImageType::PixelType
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageRegionType = typename InputImageType::RegionType
 
using InputImageType = TInputImage
 
using OptimizerType = SingleValuedNonLinearOptimizer
 
using OutputPathConstPointer = typename OutputPathType::ConstPointer
 
using OutputPathPointer = typename OutputPathType::Pointer
 
using OutputPathType = TOutputPath
 
using Pointer = SmartPointer<Self>
 
using PointsContainerType = std::vector<PointType>
 
using PointType = Point<double, InputImageDimension>
 
using Self = ArrivalFunctionToPathFilter
 
using Superclass = ImageToPathFilter<TInputImage, TOutputPath>
 
- Public Types inherited from itk::ImageToPathFilter< TInputImage, TOutputPath >
using ConstPointer = SmartPointer<const Self>
 
using InputImageConstPointer = typename InputImageType::ConstPointer
 
using InputImagePixelType = typename InputImageType::PixelType
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageRegionType = typename InputImageType::RegionType
 
using InputImageType = TInputImage
 
using Pointer = SmartPointer<Self>
 
using Self = ImageToPathFilter
 
using Superclass = PathSource<TOutputPath>
 
- Public Types inherited from itk::PathSource< TOutputPath >
using ConstPointer = SmartPointer<const Self>
 
using DataObjectPointer = DataObject::Pointer
 
using OutputPathIndexType = typename OutputPathType::IndexType
 
using OutputPathInputType = typename OutputPathType::InputType
 
using OutputPathOffsetType = typename OutputPathType::OffsetType
 
using OutputPathOutputType = typename OutputPathType::OutputType
 
using OutputPathPointer = typename OutputPathType::Pointer
 
using OutputPathType = TOutputPath
 
using Pointer = SmartPointer<Self>
 
using Self = PathSource
 
using Superclass = ProcessObject
 
using DataObjectPointerArraySizeType = ProcessObject::DataObjectPointerArraySizeType
 
- Public Types inherited from itk::ProcessObject
using ConstPointer = SmartPointer<const Self>
 
using DataObjectIdentifierType = DataObject::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArray = std::vector<DataObjectPointer>
 
using DataObjectPointerArraySizeType = DataObjectPointerArray::size_type
 
using NameArray = std::vector<DataObjectIdentifierType>
 
using Pointer = SmartPointer<Self>
 
using Self = ProcessObject
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

virtual void AddPathEndPoint (const PointType &point)
 
virtual void ClearPathEndPoints ()
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual void Execute (const itk::Object *object, const itk::EventObject &event)
 
virtual const CostFunctionType * GetCostFunction () const
 
virtual const char * GetNameOfClass () const
 
virtual const OptimizerType * GetOptimizer () const
 
virtual OptimizerType::MeasureType GetTerminationValue ()
 
virtual void SetCostFunction (CostFunctionType *_arg)
 
virtual void SetOptimizer (OptimizerType *_arg)
 
virtual void SetPathEndPoint (const PointType &point)
 
virtual void SetTerminationValue (typename OptimizerType::MeasureType _arg)
 
- Public Member Functions inherited from itk::ImageToPathFilter< TInputImage, TOutputPath >
const InputImageType * GetInput ()
 
const InputImageType * GetInput (unsigned int idx)
 
virtual void SetInput (const InputImageType *input)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
- Public Member Functions inherited from itk::PathSource< TOutputPath >
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual void GraftNthOutput (unsigned int idx, OutputPathType *graft)
 
virtual void GraftOutput (OutputPathType *graft)
 
OutputPathType * GetOutput ()
 
OutputPathType * GetOutput (unsigned int idx)
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *output)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreaderBase * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual DataObjectPointerArraySizeType GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual float GetProgress () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
void IncrementProgress (float increment)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
void SetMultiThreader (MultiThreaderBase *threader)
 
virtual void SetNumberOfWorkUnitsFromThreadRatio (ThreadIdType ratio)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
virtual void SetReleaseDataFlag (bool val)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfWorkUnits (ThreadIdType numberOfWorkUnits)
 
virtual ThreadIdType GetNumberOfWorkUnits () const
 
- Public Member Functions inherited from itk::Object
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
 
- Public Member Functions inherited from itk::LightObject
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 Public Member Functions inherited from itk::PathSource< TOutputPath >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToPathFilter< TInputImage, TOutputPath >
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 

Protected Member Functions

 ArrivalFunctionToPathFilter ()
 
virtual InputImageType * ComputeArrivalFunction ()
 
void GenerateData () override
 
void GenerateInputRequestedRegion () override
 
virtual const PointsContainerType & GetNextEndPoint ()
 
virtual unsigned int GetNumberOfPathsToExtract () const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~ArrivalFunctionToPathFilter () override
 
- Protected Member Functions inherited from itk::ImageToPathFilter< TInputImage, TOutputPath >
 ImageToPathFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~ImageToPathFilter () override=default
 
- Protected Member Functions inherited from itk::PathSource< TOutputPath >
 PathSource ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~PathSource () override=default
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
void AddOptionalInputName (const DataObjectIdentifierType &)
 
void AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObject * GetInput (const DataObjectIdentifierType &key)
 
const DataObject * GetInput (const DataObjectIdentifierType &key) const
 
virtual const DataObjectPointerArraySizeType & GetNumberOfRequiredInputs () const
 
virtual const DataObjectPointerArraySizeType & GetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType idx, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &name, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *object)
 
virtual void SetPrimaryOutput (DataObject *object)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyInputInformation () const
 
virtual void VerifyPreconditions () const
 
 ~ProcessObject () override
 
DataObject * GetInput (DataObjectPointerArraySizeType idx)
 
const DataObject * GetInput (DataObjectPointerArraySizeType idx) const
 
DataObject * GetPrimaryInput ()
 
const DataObject * GetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
DataObject * GetOutput (const DataObjectIdentifierType &key)
 
const DataObject * GetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObject * GetOutput (DataObjectPointerArraySizeType i)
 
const DataObject * GetOutput (DataObjectPointerArraySizeType i) const
 
DataObject * GetPrimaryOutput ()
 
const DataObject * GetPrimaryOutput () const
 
virtual bool GetThreaderUpdateProgress () const
 
virtual void ThreaderUpdateProgressOn ()
 
virtual void ThreaderUpdateProgressOff ()
 
virtual void SetThreaderUpdateProgress (bool arg)
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- 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

CostFunctionType::Pointer m_CostFunction
 
unsigned int m_CurrentOutput
 
OptimizerType::Pointer m_Optimizer
 
std::vector< PointsContainerType > m_PointList
 
OptimizerType::MeasureType m_TerminationValue
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime {}
 
bool m_Updating {}
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Additional Inherited Members

- Static Protected Member Functions inherited from itk::ProcessObject
template<typename TSourceObject>
static void MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs)
 
static constexpr float progressFixedToFloat (uint32_t fixed)
 
static uint32_t progressFloatToFixed (float f)
 

Member Typedef Documentation

◆ CommandType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::CommandType = ArrivalFunctionToPathCommand<Self>

Definition at line 179 of file itkArrivalFunctionToPathFilter.h.

◆ ConstPointer

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::ConstPointer = SmartPointer<const Self>

Definition at line 152 of file itkArrivalFunctionToPathFilter.h.

◆ ContinuousIndexType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::ContinuousIndexType = ContinuousIndex<double, InputImageDimension>

Definition at line 177 of file itkArrivalFunctionToPathFilter.h.

◆ CostFunctionType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::CostFunctionType = SingleImageCostFunction<InputImageType>

Definition at line 180 of file itkArrivalFunctionToPathFilter.h.

◆ DefaultOptimizerType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::DefaultOptimizerType = RegularStepGradientDescentOptimizer

Definition at line 182 of file itkArrivalFunctionToPathFilter.h.

◆ IndexType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::IndexType = Index<InputImageDimension>

Some convenient type alias.

Definition at line 176 of file itkArrivalFunctionToPathFilter.h.

◆ InputImageConstPointer

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::InputImageConstPointer = typename InputImageType::ConstPointer

Definition at line 163 of file itkArrivalFunctionToPathFilter.h.

◆ InputImagePixelType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::InputImagePixelType = typename InputImageType::PixelType

Definition at line 165 of file itkArrivalFunctionToPathFilter.h.

◆ InputImagePointer

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::InputImagePointer = typename InputImageType::Pointer

Definition at line 162 of file itkArrivalFunctionToPathFilter.h.

◆ InputImageRegionType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::InputImageRegionType = typename InputImageType::RegionType

Definition at line 164 of file itkArrivalFunctionToPathFilter.h.

◆ InputImageType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::InputImageType = TInputImage

Some image type alias.

Definition at line 161 of file itkArrivalFunctionToPathFilter.h.

◆ OptimizerType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::OptimizerType = SingleValuedNonLinearOptimizer

Definition at line 181 of file itkArrivalFunctionToPathFilter.h.

◆ OutputPathConstPointer

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::OutputPathConstPointer = typename OutputPathType::ConstPointer

Definition at line 170 of file itkArrivalFunctionToPathFilter.h.

◆ OutputPathPointer

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::OutputPathPointer = typename OutputPathType::Pointer

Definition at line 169 of file itkArrivalFunctionToPathFilter.h.

◆ OutputPathType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::OutputPathType = TOutputPath

Some path type alias.

Definition at line 168 of file itkArrivalFunctionToPathFilter.h.

◆ Pointer

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::Pointer = SmartPointer<Self>

Definition at line 151 of file itkArrivalFunctionToPathFilter.h.

◆ PointsContainerType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::PointsContainerType = std::vector<PointType>

The points are in vectors to support extended "nodes"

Definition at line 185 of file itkArrivalFunctionToPathFilter.h.

◆ PointType

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::PointType = Point<double, InputImageDimension>

Definition at line 178 of file itkArrivalFunctionToPathFilter.h.

◆ Self

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::Self = ArrivalFunctionToPathFilter

Standard class type alias.

Definition at line 149 of file itkArrivalFunctionToPathFilter.h.

◆ Superclass

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
using itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::Superclass = ImageToPathFilter<TInputImage, TOutputPath>

Definition at line 150 of file itkArrivalFunctionToPathFilter.h.

Constructor & Destructor Documentation

◆ ArrivalFunctionToPathFilter()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::ArrivalFunctionToPathFilter ( )
protected

◆ ~ArrivalFunctionToPathFilter()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::~ArrivalFunctionToPathFilter ( )
overrideprotected

Member Function Documentation

◆ AddPathEndPoint()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::AddPathEndPoint ( const PointType & point)
virtual

Adds the given point to the list.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ ClearPathEndPoints()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::ClearPathEndPoints ( )
virtual

Clear the list of end points.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ ComputeArrivalFunction()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual InputImageType * itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::ComputeArrivalFunction ( )
protectedvirtual

Compute the arrival function from which to extract the path. In this case it is simply the filter input.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ CreateAnother()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual::itk::LightObject::Pointer itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::CreateAnother ( ) const
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::LightObject.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ Execute()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::Execute ( const itk::Object * object,
const itk::EventObject & event )
virtual

Handle optimizer iteration events.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ GenerateData()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GenerateData ( )
overrideprotectedvirtual

Implemention of algorithm

Reimplemented from itk::ProcessObject.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ GenerateInputRequestedRegion()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GenerateInputRequestedRegion ( )
overrideprotectedvirtual

Override since the filter needs all the data for the algorithm

Reimplemented from itk::ProcessObject.

◆ GetCostFunction()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual const CostFunctionType * itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GetCostFunction ( ) const
virtual

◆ GetNameOfClass()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual const char * itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageToPathFilter< TInputImage, TOutputPath >.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ GetNextEndPoint()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual const PointsContainerType & itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GetNextEndPoint ( )
protectedvirtual

Get the next end point from which to back propagate.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ GetNumberOfPathsToExtract()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual unsigned int itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GetNumberOfPathsToExtract ( ) const
protectedvirtual

Get the arrival function from which to extract the path.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ GetOptimizer()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual const OptimizerType * itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GetOptimizer ( ) const
virtual

◆ GetTerminationValue()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual OptimizerType::MeasureType itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::GetTerminationValue ( )
virtual

◆ New()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
static Pointer itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::PrintSelf ( std::ostream & os,
Indent indent ) const
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::LightObject.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ SetCostFunction()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::SetCostFunction ( CostFunctionType * _arg)
virtual

Get/set the cost function. The filter (not the user) is responsible for connecting the arrival function to the cost function.

◆ SetOptimizer()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::SetOptimizer ( OptimizerType * _arg)
virtual

Get/set the Optimizer.

◆ SetPathEndPoint()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::SetPathEndPoint ( const PointType & point)
virtual

Clears the list of end points and adds the given point to the list.

Reimplemented in itk::SpeedFunctionToPathFilter< TInputImage, TOutputPath >.

◆ SetTerminationValue()

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
virtual void itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::SetTerminationValue ( typename OptimizerType::MeasureType _arg)
virtual

Get/set the termination. Once the current optimizer value falls below TerminationValue, no further points will be appended to the path. The default value is 1.0.

Member Data Documentation

◆ InputImageDimension

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
unsigned int itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::InputImageDimension = InputImageType::ImageDimension
staticconstexpr

ImageDimension constants.

Definition at line 173 of file itkArrivalFunctionToPathFilter.h.

◆ m_CostFunction

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
CostFunctionType::Pointer itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::m_CostFunction
protected

Definition at line 245 of file itkArrivalFunctionToPathFilter.h.

◆ m_CurrentOutput

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
unsigned int itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::m_CurrentOutput
protected

Definition at line 249 of file itkArrivalFunctionToPathFilter.h.

◆ m_Optimizer

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
OptimizerType::Pointer itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::m_Optimizer
protected

Definition at line 246 of file itkArrivalFunctionToPathFilter.h.

◆ m_PointList

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
std::vector<PointsContainerType> itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::m_PointList
protected

Definition at line 248 of file itkArrivalFunctionToPathFilter.h.

◆ m_TerminationValue

template<typename TInputImage, typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
OptimizerType::MeasureType itk::ArrivalFunctionToPathFilter< TInputImage, TOutputPath >::m_TerminationValue
protected

Definition at line 247 of file itkArrivalFunctionToPathFilter.h.


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