]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/Dijkstra.h
...
[FrontAlgorithms.git] / lib / fpa / Image / Dijkstra.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Image__Dijkstra__h__
7 #define __fpa__Image__Dijkstra__h__
8
9 #include <fpa/Base/Dijkstra.h>
10 #include <fpa/Image/Algorithm.h>
11 #include <fpa/Image/DefaultTraits.h>
12 #include <fpa/Image/MinimumSpanningTree.h>
13
14 namespace fpa
15 {
16   namespace Image
17   {
18     /**
19      */
20     template< class _TInputImage, class _TOutputImage, class _TFrontId = unsigned char >
21     class Dijkstra
22       : public fpa::Base::Dijkstra< fpa::Image::Algorithm< fpa::Image::DefaultTraits< _TInputImage, _TOutputImage, _TFrontId > >, fpa::Image::MinimumSpanningTree< _TInputImage::ImageDimension > >
23     {
24     public:
25       typedef _TInputImage  TInputImage;
26       typedef _TOutputImage TOutputImage;
27       typedef _TFrontId     TFrontId;
28       typedef fpa::Image::MinimumSpanningTree< _TInputImage::ImageDimension > TMST;
29
30       typedef fpa::Image::DefaultTraits< TInputImage, TOutputImage, TFrontId > TTraits;
31       typedef fpa::Image::Algorithm< TTraits >        TAlgorithm;
32       typedef fpa::Base::Dijkstra< TAlgorithm, TMST > Superclass;
33       typedef Dijkstra                                Self;
34       typedef itk::SmartPointer< Self >               Pointer;
35       typedef itk::SmartPointer< const Self >         ConstPointer;
36
37     public:
38       itkNewMacro( Self );
39       itkTypeMacro( fpa::Image::Dijkstra, fpa::Base::Dijkstra );
40
41     protected:
42       Dijkstra( ) : Superclass( ) { }
43       virtual ~Dijkstra( )        { }
44
45     private:
46       // Purposely not implemented.
47       Dijkstra( const Self& other );
48       Self& operator=( const Self& other );
49     };
50
51   } // ecapseman
52
53 } // ecapseman
54
55 #endif // __fpa__Image__Dijkstra__h__
56
57 // eof - $RCSfile$