18#ifndef itkArrivalFunctionToPathFilter_h
19#define itkArrivalFunctionToPathFilter_h
42template <
typename TFilter>
67 const auto * constCaller =
const_cast<const itk::Object *
>(caller);
75 if (!itk::IterationEvent().CheckEvent(&event))
142template <
typename TInputImage,
typename TOutputPath = PolyLineParametricPath<TInputImage::ImageDimension>>
254#ifndef ITK_MANUAL_INSTANTIATION
255# include "itkArrivalFunctionToPathFilter.hxx"
A command to listen for Optimizer Iteration events.
void Execute(const itk::Object *object, const itk::EventObject &event) override
~ArrivalFunctionToPathCommand() override=default
ArrivalFunctionToPathCommand()=default
FilterType::Pointer m_Filter
void Execute(itk::Object *caller, const itk::EventObject &event) override
ArrivalFunctionToPathCommand Self
itk::SmartPointer< Self > Pointer
ArrivalFunctionToPathFilter()
ArrivalFunctionToPathFilter Self
virtual void AddPathEndPoint(const PointType &point)
CostFunctionType::Pointer m_CostFunction
SingleValuedNonLinearOptimizer OptimizerType
virtual unsigned int GetNumberOfPathsToExtract() const
void GenerateData() override
std::vector< PointsContainerType > m_PointList
static constexpr unsigned int InputImageDimension
ImageToPathFilter< TInputImage, TOutputPath > Superclass
OptimizerType::Pointer m_Optimizer
virtual InputImageType * ComputeArrivalFunction()
SmartPointer< Self > Pointer
virtual void SetPathEndPoint(const PointType &point)
TInputImage InputImageType
typename InputImageType::ConstPointer InputImageConstPointer
ContinuousIndex< double, InputImageDimension > ContinuousIndexType
void GenerateInputRequestedRegion() override
OptimizerType::MeasureType m_TerminationValue
std::vector< PointType > PointsContainerType
virtual void ClearPathEndPoints()
ArrivalFunctionToPathCommand< Self > CommandType
typename InputImageType::RegionType InputImageRegionType
~ArrivalFunctionToPathFilter() override
virtual const PointsContainerType & GetNextEndPoint()
Index< InputImageDimension > IndexType
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputPathType::ConstPointer OutputPathConstPointer
TOutputPath OutputPathType
Point< double, InputImageDimension > PointType
RegularStepGradientDescentOptimizer DefaultOptimizerType
SingleImageCostFunction< InputImageType > CostFunctionType
unsigned int m_CurrentOutput
typename InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer
virtual void Execute(const itk::Object *object, const itk::EventObject &event)
typename InputImageType::Pointer InputImagePointer
typename OutputPathType::Pointer OutputPathPointer
Superclass for callback/observer methods.
A templated class holding a point in n-Dimensional image space.
Abstraction of the Events used to communicating among filters and with GUIs.
Control indentation during Print() invocation.
Base class for most ITK classes.
Generic representation for an optimization method.
A templated class holding a geometric point in n-Dimensional space.
Implement a gradient descent optimizer.
This class is a cost function which queries an underlying image for the single value.
SmartPointer< Self > Pointer
This class is a base for the Optimization methods that optimize a single valued function.
CostFunctionType::MeasureType MeasureType
SmartPointer< Self > Pointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
CostFunctionTemplate< double > CostFunction
#define itkSetMacro(name, type)
Represent a n-dimensional index in a n-dimensional image.