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; }
102 return !( *
this != other );
107 if ( m_LowerThreshold <= A && A <= m_UpperThreshold )
109 return m_InsideValue;
122 template<
typename TInputImage,
typename TOutputImage >
126 Functor::BinaryThreshold<
127 typename TInputImage::PixelType,
128 typename TOutputImage::PixelType > >
135 typename TInputImage::PixelType,
136 typename TOutputImage::PixelType >
193 #ifdef ITK_USE_CONCEPT_CHECKING
209 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
213 virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
223 #ifndef ITK_MANUAL_INSTANTIATION
224 #include "itkBinaryThresholdImageFilter.hxx"
void SetUpperThreshold(const TInput &thresh)
TInputImage::PixelType InputPixelType
TOutput operator()(const TInput &A) const
SmartPointer< Self > Pointer
Base class for all process objects that output image data.
SmartPointer< const Self > ConstPointer
bool operator==(const BinaryThreshold &other) const
virtual ~BinaryThresholdImageFilter() override
Binarize an input image by thresholding.
static ITK_CONSTEXPR_FUNC T max(const T &)
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
void SetInsideValue(const TOutput &value)
TOutputImage::PixelType OutputPixelType
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::BinaryThreshold< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
static ITK_CONSTEXPR_FUNC T NonpositiveMin()
Implements pixel-wise generic operation on one image.
void SetOutsideValue(const TOutput &value)
Control indentation during Print() invocation.
void SetLowerThreshold(const TInput &thresh)
SimpleDataObjectDecorator< InputPixelType > InputPixelObjectType
#define itkConceptMacro(name, concept)
bool operator!=(const BinaryThreshold &other) const
BinaryThresholdImageFilter Self