]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/Functors/RegionGrow/Tautology.h
...
[FrontAlgorithms.git] / lib / fpa / Base / Functors / RegionGrow / Tautology.h
index 11d016eccf149fb62792e760abdcc8d64364efe8..a024b598f47e883330432844a6e97b609efca427 100644 (file)
@@ -1,7 +1,12 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+
 #ifndef __fpa__Base__Functors__RegionGrow__Tautology__h__
 #define __fpa__Base__Functors__RegionGrow__Tautology__h__
 
-#include <fpa/Base/Functors/RegionGrow/Base.h>
+#include <itkFunctionBase.h>
 
 namespace fpa
 {
@@ -13,38 +18,40 @@ namespace fpa
       {
         /**
          */
-        template< class _TVertex, class _TOutput >
+        template< class _TValue >
         class Tautology
-          : public Base< _TVertex, _TOutput >
+          : public itk::FunctionBase< _TValue, bool >
         {
         public:
-          typedef Tautology                       Self;
-          typedef Base< _TVertex, _TOutput >      Superclass;
-          typedef itk::SmartPointer< Self >       Pointer;
-          typedef itk::SmartPointer< const Self > ConstPointer;
-
-          typedef typename Superclass::TOutput TOutput;
-          typedef typename Superclass::TVertex TVertex;
+          typedef Tautology                          Self;
+          typedef itk::FunctionBase< _TValue, bool > Superclass;
+          typedef itk::SmartPointer< Self >          Pointer;
+          typedef itk::SmartPointer< const Self >    ConstPointer;
 
         public:
           itkNewMacro( Self );
-          itkTypeMacro( Tautology, Base );
+          itkTypeMacro(
+            fpa::Base::Functors::RegionGrow::Tautology,
+            itk::FunctionBase
+            );
 
         public:
-          virtual TOutput Evaluate( const TVertex& a, const TVertex& b ) const override
+          virtual bool Evaluate( const _TValue& input ) const override
             {
-              return( this->m_InsideValue );
+              return( true );
             }
 
         protected:
           Tautology( )
             : Superclass( )
-            { }
+            {
+            }
           virtual ~Tautology( )
-            { }
+            {
+            }
 
         private:
-          // Purposely not defined
+          // Purposely not implemented
           Tautology( const Self& other );
           Self& operator=( const Self& other );
         };