- typedef fpa::Base::Dijkstra< typename I::IndexType, typename I::PixelType, typename O::PixelType, itk::Functor::IndexLexicographicCompare< I::ImageDimension >, itk::ImageToImageFilter< I, O > > TBaseAlgorithm;
-
- typedef Dijkstra Self;
- typedef Algorithm< I, O, TBaseAlgorithm > Superclass;
- typedef itk::SmartPointer< Self > Pointer;
- typedef itk::SmartPointer< const Self > ConstPointer;
-
- typedef typename Superclass::TInputImage TInputImage;
- typedef typename Superclass::TOutputImage TOutputImage;
- typedef typename Superclass::TVertex TVertex;
- typedef typename Superclass::TValue TValue;
- typedef typename Superclass::TResult TResult;
-
- typedef typename Superclass::TStartEvent TStartEvent;
- typedef typename Superclass::TStartLoopEvent TStartLoopEvent;
- typedef typename Superclass::TEndEvent TEndEvent;
- typedef typename Superclass::TEndLoopEvent TEndLoopEvent;
- typedef typename Superclass::TAliveEvent TAliveEvent;
- typedef typename Superclass::TFrontEvent TFrontEvent;
- typedef typename Superclass::TFreezeEvent TFreezeEvent;
-
- typedef typename Superclass::TStartBacktrackingEvent TStartBacktrackingEvent;
- typedef typename Superclass::TEndBacktrackingEvent TEndBacktrackingEvent;
- typedef typename Superclass::TBacktrackingEvent TBacktrackingEvent;
-
- typedef fpa::Image::Functors::ImageCostFunction< TInputImage, TResult > TCostFunction;
- typedef itk::FunctionBase< TResult, TResult > TConversionFunction;
-
- protected:
- typedef typename Superclass::_TVertices _TVertices;
- typedef typename Superclass::_TCollision _TCollision;
- typedef typename Superclass::_TCollisionsRow _TCollisionsRow;
- typedef typename Superclass::_TCollisions _TCollisions;
- typedef typename Superclass::_TNode _TNode;
- typedef typename Superclass::_TNodes _TNodes;
+ // Interfaces
+ typedef fpa::Image::Filter< _TInputImage, _TOutputImage > TFilter;
+ typedef fpa::Image::MarksInterface< _TInputImage::ImageDimension > TMarksInterface;
+ typedef fpa::Base::SeedsInterface< typename _TInputImage::IndexType, typename _TInputImage::IndexType::LexicographicCompare > TSeedsInterface;
+ typedef fpa::Image::MinimumSpanningTree< _TInputImage::ImageDimension > TMST;
+
+ // Smart pointers
+ typedef Dijkstra Self;
+ typedef fpa::Base::Dijkstra< TFilter, TMarksInterface, TSeedsInterface, TMST > Superclass;
+ typedef itk::SmartPointer< Self > Pointer;
+ typedef itk::SmartPointer< const Self > ConstPointer;
+
+ typedef typename TFilter::TInputImage TInputImage;
+ typedef typename TFilter::TOutputValue TOutputValue;
+ typedef typename TFilter::TVertex TVertex;