18 #ifndef __itkVarianceImageFunction_h
19 #define __itkVarianceImageFunction_h
42 template<
class TInputImage,
class TCoordRep =
float >
44 public ImageFunction< TInputImage, typename NumericTraits< typename TInputImage::PixelType >::RealType,
79 itkStaticConstMacro(ImageDimension,
unsigned int,
80 InputImageType::ImageDimension);
94 this->ConvertPointToNearestIndex(point, index);
95 return this->EvaluateAtIndex(index);
103 this->ConvertContinuousIndexToNearestIndex(cindex, index);
104 return this->EvaluateAtIndex(index);
109 itkSetMacro(NeighborhoodRadius,
unsigned int);
110 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
114 void PrintSelf(std::ostream & os,
Indent indent)
const;
119 void operator=(
const Self &);
126 #define ITK_TEMPLATE_VarianceImageFunction(_, EXPORT, TypeX, TypeY) \
129 _( 2 ( class EXPORT VarianceImageFunction< ITK_TEMPLATE_2 TypeX > ) ) \
130 namespace Templates \
132 typedef VarianceImageFunction< ITK_TEMPLATE_2 TypeX > \
133 VarianceImageFunction##TypeY; \
137 #if ITK_TEMPLATE_EXPLICIT
138 #include "Templates/itkVarianceImageFunction+-.h"
142 #include "itkVarianceImageFunction.hxx"