18 #ifndef itkBinaryThresholdImageFilter_h
19 #define itkBinaryThresholdImageFilter_h
65 template<
typename TInput,
typename TOutput >
80 { m_LowerThreshold = thresh; }
82 { m_UpperThreshold = thresh; }
84 { m_InsideValue = value; }
86 { m_OutsideValue = value; }
102 return !( *
this != other );
107 if ( m_LowerThreshold <= A && A <= m_UpperThreshold )
109 return m_InsideValue;
111 return m_OutsideValue;
122 template<
typename TInputImage,
typename TOutputImage >
126 Functor::BinaryThreshold<
127 typename TInputImage::PixelType,
128 typename TOutputImage::PixelType > >
137 typename TInputImage::PixelType,
138 typename TOutputImage::PixelType >
195 #ifdef ITK_USE_CONCEPT_CHECKING
211 void PrintSelf(std::ostream & os,
Indent indent)
const override;
215 void BeforeThreadedGenerateData()
override;
223 #ifndef ITK_MANUAL_INSTANTIATION
224 #include "itkBinaryThresholdImageFilter.hxx"
void SetUpperThreshold(const TInput &thresh)
TOutput operator()(const TInput &A) const
Define numeric traits for std::vector.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
bool operator==(const BinaryThreshold &other) const
Binarize an input image by thresholding.
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
void SetInsideValue(const TOutput &value)
typename TInputImage::PixelType InputPixelType
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
OutputPixelType m_InsideValue
Implements pixel-wise generic operation on one image.
void SetOutsideValue(const TOutput &value)
Control indentation during Print() invocation.
void SetLowerThreshold(const TInput &thresh)
#define itkConceptMacro(name, concept)
typename TOutputImage::PixelType OutputPixelType
OutputPixelType m_OutsideValue
bool operator!=(const BinaryThreshold &other) const