1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Image__Functors__RegionGrow__BinaryThreshold__h__
7 #define __fpa__Image__Functors__RegionGrow__BinaryThreshold__h__
9 #include <itkFunctionBase.h>
21 template< class _TPixel >
23 : public itk::FunctionBase< _TPixel, bool >
26 typedef _TPixel TPixel;
28 typedef BinaryThreshold Self;
29 typedef itk::FunctionBase< TPixel, bool > Superclass;
30 typedef itk::SmartPointer< Self > Pointer;
31 typedef itk::SmartPointer< const Self > ConstPointer;
36 fpa::Image::Functors::RegionGrow::BinaryThreshold,
40 itkGetConstMacro( Lower, TPixel );
41 itkGetConstMacro( Upper, TPixel );
43 itkSetMacro( Lower, TPixel );
44 itkSetMacro( Upper, TPixel );
47 virtual bool Evaluate( const TPixel& value ) const override;
51 virtual ~BinaryThreshold( );
54 // Purposely not implemented
55 BinaryThreshold( const Self& other );
56 Self& operator=( const Self& other );
71 #ifndef ITK_MANUAL_INSTANTIATION
72 # include <fpa/Image/Functors/RegionGrow/BinaryThreshold.hxx>
73 #endif // ITK_MANUAL_INSTANTIATION
75 #endif // __fpa__Image__Functors__RegionGrow__BinaryThreshold__h__