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