17 #ifndef itkArrivalFunctionToPathFilter_h
18 #define itkArrivalFunctionToPathFilter_h
41 template <
class TFilter>
70 if( ! itk::IterationEvent().CheckEvent( &event ) )
89 typename FilterType::Pointer
m_Filter;
142 template <
class TInputImage,
173 itkStaticConstMacro(InputImageDimension,
unsigned int,
174 InputImageType::ImageDimension);
197 virtual void SetPathEndPoint(
const PointType & point );
200 virtual void AddPathEndPoint(
const PointType & point );
203 virtual void ClearPathEndPoints();
218 virtual void PrintSelf(std::ostream& os,
Indent indent)
const ITK_OVERRIDE;
221 void GenerateInputRequestedRegion() ITK_OVERRIDE;
224 void GenerateData(
void) ITK_OVERRIDE;
227 virtual
unsigned int GetNumberOfPathsToExtract( ) const;
234 virtual const
PointType & GetNextEndPoint( );
240 unsigned int m_CurrentOutput;
248 #ifndef ITK_MANUAL_INSTANTIATION
249 #include "itkArrivalFunctionToPathFilter.hxx"
This class is a cost function which queries an underlying image for the single value.
OutputPathType::ConstPointer OutputPathConstPointer
SmartPointer< Self > Pointer
TInputImage InputImageType
Represent a path of line segments through ND Space.
Light weight base class for most itk classes.
SingleValuedNonLinearOptimizer OptimizerType
ImageToPathFilter< TInputImage, TOutputPath > Superclass
SmartPointer< const Self > ConstPointer
void Execute(itk::Object *caller, const itk::EventObject &event) override
Extracts a path from a Fast Marching arrival function.
A command to listen for Optimizer Iteration events.
ArrivalFunctionToPathCommand Self
TInputImage InputImageType
This class is a base for the Optimization methods that optimize a single valued function.
itk::SmartPointer< Self > Pointer
Base class for filters that take an image as input and produce an path as output. ...
Implement a gradient descent optimizer.
RegularStepGradientDescentOptimizer DefaultOptimizerType
OutputPathType::Pointer OutputPathPointer
ArrivalFunctionToPathFilter Self
InputImageType::Pointer InputImagePointer
TOutputPath OutputPathType
CostFunctionType::MeasureType MeasureType
InputImageType::ConstPointer InputImageConstPointer
InputImageType::PixelType InputImagePixelType
Point< double, InputImageDimension > PointType
~ArrivalFunctionToPathCommand()
ContinuousIndex< double, InputImageDimension > ContinuousIndexType
Generic representation for an optimization method.
int Execute(int argc, char *argv[])
InputImageType::RegionType InputImageRegionType
Abstraction of the Events used to communicating among filters and with GUIs.
SingleImageCostFunction< InputImageType > CostFunctionType
FilterType::Pointer m_Filter
A templated class holding a point in n-Dimensional image space.
ArrivalFunctionToPathCommand()
Control indentation during Print() invocation.
Base class for most ITK classes.
A templated class holding a geometric point in n-Dimensional space.
Represent a n-dimensional index in a n-dimensional image.
Superclass for callback/observer methods.
void Execute(const itk::Object *object, const itk::EventObject &event) override
ArrivalFunctionToPathCommand< Self > CommandType
Index< InputImageDimension > IndexType