18#ifndef itkBinaryThresholdImageFunction_h
19#define itkBinaryThresholdImageFunction_h
43template <
typename TInputImage,
typename TCoordRep =
float>
62 using typename Superclass::InputImageType;
68 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
77 using typename Superclass::ContinuousIndexType;
93 this->ConvertPointToNearestIndex(
point, index);
94 return (this->EvaluateAtIndex(index));
110 this->ConvertContinuousIndexToNearestIndex(index, nindex);
111 return this->EvaluateAtIndex(nindex);
125 PixelType value = this->GetInputImage()->GetPixel(index);
127 return (m_Lower <= value && value <= m_Upper);
160#ifndef ITK_MANUAL_INSTANTIATION
161# include "itkBinaryThresholdImageFunction.hxx"
Returns true is the value of an image lies within a range of thresholds This ImageFunction returns tr...
BinaryThresholdImageFunction()
void ThresholdBetween(PixelType lower, PixelType upper)
~BinaryThresholdImageFunction() override=default
typename TInputImage::PixelType PixelType
bool EvaluateAtIndex(const IndexType &index) const override
void PrintSelf(std::ostream &os, Indent indent) const override
bool Evaluate(const PointType &point) const override
void ThresholdAbove(PixelType thresh)
bool EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
void ThresholdBelow(PixelType thresh)
Evaluates a function of an image at specified position.
typename InputImageType::IndexType IndexType
Control indentation during Print() invocation.
Light weight base class for most itk classes.
A templated class holding a geometric point in n-Dimensional space.
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
*par Constraints *The filter image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents