1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Base__Dijkstra__h__
7 #define __fpa__Base__Dijkstra__h__
9 #include <itkFunctionBase.h>
17 template< class _TFilter, class _TMarksInterface, class _TSeedsInterface >
20 public _TMarksInterface,
21 public _TSeedsInterface
24 typedef Dijkstra Self;
25 typedef _TFilter Superclass;
26 typedef _TMarksInterface TMarksInterface;
27 typedef _TSeedsInterface TSeedsInterface;
28 typedef itk::SmartPointer< Self > Pointer;
29 typedef itk::SmartPointer< const Self > ConstPointer;
31 typedef typename Superclass::TInputValue TInputValue;
32 typedef typename Superclass::TOutputValue TOutputValue;
33 typedef typename Superclass::TVertex TVertex;
34 typedef typename Superclass::TVertices TVertices;
36 typedef itk::FunctionBase< TInputValue, TOutputValue > TIntensityFunctor;
37 typedef itk::FunctionBase< TVertex, TOutputValue > TVertexFunctor;
45 _TNode( const TVertex& v, const TVertex& p )
49 this->Cost = TOutputValue( 0 );
51 bool operator<( const _TNode& b ) const
53 return( this->Cost < b.Cost );
58 itkTypeMacro( Dijkstra, TFilter );
61 const TIntensityFunctor* GetIntensityFunctor( ) const;
62 const TVertexFunctor* GetVertexFunctor( ) const;
64 void SetFunctor( TIntensityFunctor* functor );
65 void SetFunctor( TVertexFunctor* functor );
71 virtual void GenerateData( ) override;
74 Dijkstra( const Self& other );
75 Self& operator=( const Self& other );
78 typename TIntensityFunctor::Pointer m_IntensityFunctor;
79 typename TVertexFunctor::Pointer m_VertexFunctor;
86 #ifndef ITK_MANUAL_INSTANTIATION
87 # include <fpa/Base/Dijkstra.hxx>
88 #endif // ITK_MANUAL_INSTANTIATION
90 #endif // __fpa__Base__Dijkstra__h__