]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/Dijkstra.h
96c642b273be7fce59a3d6f51bde113b3ed2f827
[FrontAlgorithms.git] / lib / fpa / Image / Dijkstra.h
1 #ifndef __fpa__Image__Dijkstra__h__
2 #define __fpa__Image__Dijkstra__h__
3
4 #include <fpa/Base/Dijkstra.h>
5 #include <fpa/Image/Algorithm.h>
6 #include <fpa/Image/MinimumSpanningTree.h>
7 #include <fpa/Image/Functors/Base.h>
8
9 namespace fpa
10 {
11   namespace Image
12   {
13     /**
14      */
15     template< class _TInputImage, class _TOutputImage >
16     class Dijkstra
17       : public fpa::Base::Dijkstra< fpa::Image::Algorithm< _TInputImage, _TOutputImage >, fpa::Image::MinimumSpanningTree< _TInputImage::ImageDimension > >
18     {
19     public:
20       typedef Dijkstra                                             Self;
21       typedef fpa::Image::Algorithm< _TInputImage, _TOutputImage > TAlgorithm;
22       typedef fpa::Image::MinimumSpanningTree< _TInputImage::ImageDimension > TMST;
23       typedef fpa::Base::Dijkstra< TAlgorithm, TMST > Superclass;
24       typedef itk::SmartPointer< Self >               Pointer;
25       typedef itk::SmartPointer< const Self >         ConstPointer;
26
27       typedef typename Superclass::TOutput TOutput;
28       typedef typename Superclass::TVertex TVertex;
29
30       typedef fpa::Image::Functors::Base< _TInputImage, fpa::Base::DijkstraCostFunctionBase< TVertex, TOutput > > TCostFunction;
31
32     public:
33       itkNewMacro( Self );
34       itkTypeMacro( fpa::Image::Dijkstra, fpa::Base::Dijkstra );
35
36     protected:
37       Dijkstra( );
38       virtual ~Dijkstra( );
39
40       virtual void _BeforeGenerateData( ) override;
41
42     private:
43       // Purposely not defined
44       Dijkstra( const Self& other );
45       Self& operator=( const Self& other );
46     };
47
48   } // ecapseman
49
50 } // ecapseman
51
52 #ifndef ITK_MANUAL_INSTANTIATION
53 #  include <fpa/Image/Dijkstra.hxx>
54 #endif // ITK_MANUAL_INSTANTIATION
55
56 #endif // __fpa__Image__Dijkstra__h__
57
58 // eof - $RCSfile$