18 #ifndef __itkMeanImageFunction_h
19 #define __itkMeanImageFunction_h
44 template<
class TInputImage,
class TCoordRep =
float >
47 typename NumericTraits< typename TInputImage::PixelType >::RealType,
83 itkStaticConstMacro(ImageDimension,
unsigned int,
84 InputImageType::ImageDimension);
98 this->ConvertPointToNearestIndex(point, index);
99 return this->EvaluateAtIndex(index);
107 this->ConvertContinuousIndexToNearestIndex(cindex, index);
108 return this->EvaluateAtIndex(index);
113 itkSetMacro(NeighborhoodRadius,
unsigned int);
114 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
118 void PrintSelf(std::ostream & os,
Indent indent)
const;
123 void operator=(
const Self &);
130 #define ITK_TEMPLATE_MeanImageFunction(_, EXPORT, TypeX, TypeY) \
133 _( 2 ( class EXPORT MeanImageFunction< ITK_TEMPLATE_2 TypeX > ) ) \
134 namespace Templates \
136 typedef MeanImageFunction< ITK_TEMPLATE_2 TypeX > \
137 MeanImageFunction##TypeY; \
141 #if ITK_TEMPLATE_EXPLICIT
142 #include "Templates/itkMeanImageFunction+-.h"
146 #include "itkMeanImageFunction.hxx"