18 #ifndef itkBinaryThresholdImageFunction_h
19 #define itkBinaryThresholdImageFunction_h
43 template <
typename TInputImage,
typename TCoordRep =
float>
68 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
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);
131 itkGetConstReferenceMacro(Lower, PixelType);
134 itkGetConstReferenceMacro(Upper, PixelType);
138 ThresholdAbove(PixelType thresh);
142 ThresholdBelow(PixelType thresh);
146 ThresholdBetween(PixelType lower, PixelType upper);
152 PrintSelf(std::ostream & os,
Indent indent)
const override;
160 #ifndef ITK_MANUAL_INSTANTIATION
161 # include "itkBinaryThresholdImageFunction.hxx"