X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FFunctors%2FRegionGrow%2FBinaryThreshold.h;fp=lib%2Ffpa%2FBase%2FFunctors%2FRegionGrow%2FBinaryThreshold.h;h=0000000000000000000000000000000000000000;hb=3c639e5da479c7216a0a302ffa156ac6762caeed;hp=0ac4618e5bc237910ec919b20d7669e54fbb65e6;hpb=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/Functors/RegionGrow/BinaryThreshold.h b/lib/fpa/Base/Functors/RegionGrow/BinaryThreshold.h deleted file mode 100644 index 0ac4618..0000000 --- a/lib/fpa/Base/Functors/RegionGrow/BinaryThreshold.h +++ /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 -#include - -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$