18 #ifndef itkBinaryThresholdImageFilter_h 19 #define itkBinaryThresholdImageFilter_h 65 template<
typename TInput,
typename TOutput >
102 return !( *
this != other );
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 >
156 itkSetMacro(OutsideValue, OutputPixelType);
159 itkGetConstReferenceMacro(OutsideValue, OutputPixelType);
163 itkSetMacro(InsideValue, OutputPixelType);
166 itkGetConstReferenceMacro(InsideValue, OutputPixelType);
174 virtual void SetUpperThresholdInput(
const InputPixelObjectType *);
178 virtual void SetLowerThresholdInput(
const InputPixelObjectType *);
181 virtual InputPixelType GetUpperThreshold()
const;
183 virtual InputPixelObjectType * GetUpperThresholdInput();
185 virtual const InputPixelObjectType * GetUpperThresholdInput()
const;
187 virtual InputPixelType GetLowerThreshold()
const;
189 virtual InputPixelObjectType * GetLowerThresholdInput();
191 virtual const InputPixelObjectType * GetLowerThresholdInput()
const;
193 #ifdef ITK_USE_CONCEPT_CHECKING 209 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
213 virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
217 void operator=(
const Self &) ITK_DELETE_FUNCTION;
224 #ifndef ITK_MANUAL_INSTANTIATION 225 #include "itkBinaryThresholdImageFilter.hxx" void SetUpperThreshold(const TInput &thresh)
TInputImage::PixelType InputPixelType
TOutput operator()(const TInput &A) const
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
SmartPointer< const Self > ConstPointer
bool operator==(const BinaryThreshold &other) const
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)
OutputPixelType m_InsideValue
static ITK_CONSTEXPR_FUNC T NonpositiveMin()
Implements pixel-wise generic operation on one image.
virtual ~BinaryThresholdImageFilter()
void SetOutsideValue(const TOutput &value)
Control indentation during Print() invocation.
void SetLowerThreshold(const TInput &thresh)
SimpleDataObjectDecorator< InputPixelType > InputPixelObjectType
#define itkConceptMacro(name, concept)
OutputPixelType m_OutsideValue
bool operator!=(const BinaryThreshold &other) const
BinaryThresholdImageFilter Self