]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/Functors/Dijkstra/Function.h
e9fa0b2f7c92543b20d0a716e3442d223f3d23a9
[FrontAlgorithms.git] / lib / fpa / Image / Functors / Dijkstra / Function.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5
6 #ifndef __fpa__Image__Functors__Dijkstra__Function__h__
7 #define __fpa__Image__Functors__Dijkstra__Function__h__
8
9 #include <fpa/Base/Functors/Dijkstra/Function.h>
10
11 namespace fpa
12 {
13   namespace Image
14   {
15     namespace Functors
16     {
17       namespace Dijkstra
18       {
19         /**
20          */
21         template< class _TInputImage, class _TOutputValue >
22         class Function
23           : public fpa::Base::Functors::Dijkstra::Function< typename _TInputImage::IndexType, _TOutputValue >
24         {
25         public:
26           typedef typename _TInputImage::IndexType TVertex;
27           typedef Function Self;
28           typedef fpa::Base::Functors::Dijkstra::Function< TVertex, _TOutputValue > Superclass;
29           typedef itk::SmartPointer< Self >       Pointer;
30           typedef itk::SmartPointer< const Self > ConstPointer;
31
32         public:
33           itkTypeMacro(
34             fpa::Image::Functors::Dijkstra::Function,
35             fpa::Base::Functors::Dijkstra::Function
36             );
37
38           itkGetConstObjectMacro( Image, _TInputImage );
39           itkSetConstObjectMacro( Image, _TInputImage );
40
41         protected:
42           Function( )
43             : Superclass( )
44             {
45             }
46           virtual ~Function( )
47             {
48             }
49
50         private:
51           // Purposely not implemented
52           Function( const Self& other );
53           Self& operator=( const Self& other );
54
55         protected:
56           typename _TInputImage::ConstPointer m_Image;
57         };
58
59       } // ecapseman
60
61     } // ecapseman
62
63   } // ecapseman
64
65 } // ecapseman
66
67 #endif // __fpa__Image__Functors__Dijkstra__Function__h__
68
69 // eof - $RCSfile$