18 #ifndef __itkMedianImageFunction_h
19 #define __itkMedianImageFunction_h
46 template<
class TInputImage,
class TCoordRep =
float >
48 public ImageFunction< TInputImage, typename TInputImage::PixelType,
55 typedef ImageFunction< TInputImage,
typename TInputImage::PixelType,
84 itkStaticConstMacro(ImageDimension,
unsigned int,
85 InputImageType::ImageDimension);
95 this->ConvertPointToNearestIndex(point, index);
96 return this->EvaluateAtIndex(index);
104 this->ConvertContinuousIndexToNearestIndex(cindex, index);
105 return this->EvaluateAtIndex(index);
110 itkSetMacro( NeighborhoodRadius,
unsigned int );
111 itkGetConstReferenceMacro( NeighborhoodRadius,
unsigned int );
117 void PrintSelf(std::ostream & os,
Indent indent)
const;
121 void operator=(
const Self &);
129 #define ITK_TEMPLATE_MedianImageFunction(_, EXPORT, TypeX, TypeY) \
132 _( 2 ( class EXPORT MedianImageFunction< ITK_TEMPLATE_2 TypeX > ) ) \
133 namespace Templates \
135 typedef MedianImageFunction< ITK_TEMPLATE_2 TypeX > \
136 MedianImageFunction##TypeY; \
140 #if ITK_TEMPLATE_EXPLICIT
141 #include "Templates/itkMedianImageFunction+-.h"
145 #include "itkMedianImageFunction.hxx"