+++ /dev/null
-// =========================================================================
-// @author Leonardo Florez Valencia
-// @email florez-l@javeriana.edu.co
-// =========================================================================
-#ifndef __fpa__Functors__RegionGrow__BinaryThreshold__h__
-#define __fpa__Functors__RegionGrow__BinaryThreshold__h__
-
-#include <itkFunctionBase.h>
-
-namespace fpa
-{
- namespace Functors
- {
- namespace RegionGrow
- {
- /**
- */
- template< class _TValue >
- class BinaryThreshold
- : public itk::FunctionBase< _TValue, bool >
- {
- public:
- typedef _TValue TValue;
- typedef itk::FunctionBase< TValue, bool > Superclass;
- typedef BinaryThreshold Self;
- typedef itk::SmartPointer< Self > Pointer;
- typedef itk::SmartPointer< const Self > ConstPointer;
-
- public:
- itkNewMacro( Self );
- itkTypeMacro(
- fpa::Functors::RegionGrow::BinaryThreshold, itk::FunctionBase
- );
-
- itkGetConstMacro( LowerThreshold, TValue );
- itkSetMacro( LowerThreshold, TValue );
-
- itkGetConstMacro( UpperThreshold, TValue );
- itkSetMacro( UpperThreshold, TValue );
-
- itkBooleanMacro( Strict );
- itkGetConstMacro( Strict, bool );
- itkSetMacro( Strict, bool );
-
- public:
- void ThresholdAbove( const TValue& a );
- void ThresholdBetween( const TValue& a, const TValue& b );
- void ThresholdBelow( const TValue& a );
-
- virtual bool Evaluate( const TValue& v ) const override;
-
- protected:
- BinaryThreshold( );
- virtual ~BinaryThreshold( );
-
- private:
- // Purposely not implemented.
- BinaryThreshold( const Self& other );
- Self& operator=( const Self& other );
-
- protected:
- TValue m_LowerThreshold;
- TValue m_UpperThreshold;
- bool m_Strict;
- };
-
- } // ecapseman
-
- } // ecapseman
-
-} // ecapseman
-
-#ifndef ITK_MANUAL_INSTANTIATION
-# include <fpa/Functors/RegionGrow/BinaryThreshold.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
-
-#endif // __fpa__Functors__RegionGrow__BinaryThreshold__h__
-// eof - $RCSfile$