18 #ifndef itkBinaryThresholdImageFunction_h
19 #define itkBinaryThresholdImageFunction_h
42 template<
typename TInputImage,
typename TCoordRep =
float >
66 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
90 this->ConvertPointToNearestIndex(point, index);
91 return ( this->EvaluateAtIndex(index) );
107 this->ConvertContinuousIndexToNearestIndex (index, nindex);
108 return this->EvaluateAtIndex(nindex);
121 PixelType value = this->GetInputImage()->GetPixel(index);
123 return ( m_Lower <= value && value <= m_Upper );
127 itkGetConstReferenceMacro(Lower, PixelType);
130 itkGetConstReferenceMacro(Upper, PixelType);
133 void ThresholdAbove(PixelType thresh);
136 void ThresholdBelow(PixelType thresh);
139 void ThresholdBetween(PixelType lower, PixelType upper);
144 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
154 #ifndef ITK_MANUAL_INSTANTIATION
155 #include "itkBinaryThresholdImageFunction.hxx"
Superclass::PointType PointType
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Superclass::IndexType IndexType
Superclass::ContinuousIndexType ContinuousIndexType
TInputImage::PixelType PixelType
ImageBaseType::PointType PointType
virtual bool Evaluate(const PointType &point) const override
~BinaryThresholdImageFunction() override
Control indentation during Print() invocation.
Returns true is the value of an image lies within a range of thresholds This ImageFunction returns tr...
virtual bool EvaluateAtIndex(const IndexType &index) const override
Evaluates a function of an image at specified position.
BinaryThresholdImageFunction Self
virtual bool EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
Superclass::InputImageType InputImageType
ImageFunction< TInputImage, bool, TCoordRep > Superclass
ImageBaseType::IndexType IndexType