18 #ifndef __itkNeighborhoodBinaryThresholdImageFunction_h
19 #define __itkNeighborhoodBinaryThresholdImageFunction_h
41 template<
class TInputImage,
class TCoordRep =
float >
78 itkStaticConstMacro(ImageDimension,
unsigned int,
79 InputImageType::ImageDimension);
91 virtual bool EvaluateAtIndex(
const IndexType & index)
const;
94 virtual bool Evaluate(
const PointType & point)
const
98 this->ConvertPointToNearestIndex(point, index);
99 return this->EvaluateAtIndex(index);
102 virtual bool EvaluateAtContinuousIndex(
107 this->ConvertContinuousIndexToNearestIndex(cindex, index);
108 return this->EvaluateAtIndex(index);
114 void PrintSelf(std::ostream & os,
Indent indent)
const;
119 void operator=(
const Self &);
128 #define ITK_TEMPLATE_NeighborhoodBinaryThresholdImageFunction(_, EXPORT, TypeX, TypeY) \
131 _( 2 ( class EXPORT NeighborhoodBinaryThresholdImageFunction< ITK_TEMPLATE_2 TypeX > ) ) \
132 namespace Templates \
134 typedef NeighborhoodBinaryThresholdImageFunction< ITK_TEMPLATE_2 TypeX > \
135 NeighborhoodBinaryThresholdImageFunction##TypeY; \
139 #if ITK_TEMPLATE_EXPLICIT
140 #include "Templates/itkNeighborhoodBinaryThresholdImageFunction+-.h"
144 #include "itkNeighborhoodBinaryThresholdImageFunction.hxx"