]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/Functors/RegionGrow/BinaryThreshold.h
...
[FrontAlgorithms.git] / lib / fpa / Base / Functors / RegionGrow / BinaryThreshold.h
diff --git a/lib/fpa/Base/Functors/RegionGrow/BinaryThreshold.h b/lib/fpa/Base/Functors/RegionGrow/BinaryThreshold.h
deleted file mode 100644 (file)
index 0ac4618..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-// =========================================================================
-// @author Leonardo Florez Valencia
-// @email florez-l@javeriana.edu.co
-// =========================================================================
-
-#ifndef __fpa__Base__Functors__RegionGrow__BinaryThreshold__h__
-#define __fpa__Base__Functors__RegionGrow__BinaryThreshold__h__
-
-#include <limits>
-#include <itkFunctionBase.h>
-
-namespace fpa
-{
-  namespace Base
-  {
-    namespace Functors
-    {
-      namespace RegionGrow
-      {
-        /**
-         */
-        template< class _TValue >
-        class BinaryThreshold
-          : public itk::FunctionBase< _TValue, bool >
-        {
-        public:
-          typedef BinaryThreshold                    Self;
-          typedef itk::FunctionBase< _TValue, bool > Superclass;
-          typedef itk::SmartPointer< Self >          Pointer;
-          typedef itk::SmartPointer< const Self >    ConstPointer;
-
-        public:
-          itkNewMacro( Self );
-          itkTypeMacro(
-            fpa::Base::Functors::RegionGrow::BinaryThreshold,
-            itk::FunctionBase
-            );
-
-          itkBooleanMacro( Strict );
-
-          itkGetConstMacro( Lower, _TValue );
-          itkGetConstMacro( Upper, _TValue );
-          itkGetConstMacro( Strict, bool );
-
-          itkSetMacro( Lower, _TValue );
-          itkSetMacro( Upper, _TValue );
-          itkSetMacro( Strict, bool );
-
-        public:
-          virtual bool Evaluate( const _TValue& input ) const override
-            {
-              if( this->m_Strict )
-                return( this->m_Lower < input && input < this->m_Upper );
-              else
-                return( this->m_Lower <= input && input <= this->m_Upper );
-            }
-
-        protected:
-          BinaryThreshold( )
-            : Superclass( ),
-              m_Strict( true )
-            {
-              this->m_Upper = std::numeric_limits< _TValue >::max( );
-              if( std::numeric_limits< _TValue >::is_integer )
-                this->m_Lower = std::numeric_limits< _TValue >::min( );
-              else
-                this->m_Lower = -this->m_Upper;
-            }
-
-          virtual ~BinaryThreshold( )
-            {
-            }
-
-        private:
-          // Purposely not implemented
-          BinaryThreshold( const Self& other );
-          Self& operator=( const Self& other );
-
-        protected:
-          _TValue m_Lower;
-          _TValue m_Upper;
-          bool m_Strict;
-        };
-
-      } // ecapseman
-
-    } // ecapseman
-
-  } // ecapseman
-
-} // ecapseman
-
-#endif // __fpa__Base__Functors__RegionGrow__BinaryThreshold__h__
-
-// eof - $RCSfile$