- // 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;
+ typedef _TInputImage TInputImage;
+ typedef _TOutputImage TOutputImage;
+ typedef _TFrontId TFrontId;
+
+ typedef typename TInputImage::IndexType TVertex;
+ typedef typename TVertex::LexicographicCompare TVertexCompare;
+ typedef typename TInputImage::PixelType TInputValue;
+ typedef typename TOutputImage::PixelType TOutputValue;
+
+ typedef fpa::Base::MarksInterfaceWithCollisions< TVertex > TMarksInterface;
+ typedef fpa::Base::SeedsInterface< TVertex, TInputValue, TOutputValue, TFrontId, TVertexCompare > TSeedsInterface;
+ typedef fpa::Image::Algorithm< TInputImage, TOutputImage, TMarksInterface, TSeedsInterface > TAlgorithm;
+ typedef fpa::Image::MinimumSpanningTree< TInputImage::ImageDimension > TMST;
+
+ typedef Dijkstra Self;
+ typedef fpa::Base::Dijkstra< TAlgorithm, TMST > Superclass;
+ typedef itk::SmartPointer< Self > Pointer;
+ typedef itk::SmartPointer< const Self > ConstPointer;
+
+ typedef fpa::Image::Functors::Dijkstra::Function< TInputImage, TOutputValue > TWeightFunction;