18 #ifndef itkMedianImageFunction_h
19 #define itkMedianImageFunction_h
48 template <
typename TInputImage,
typename TCoordRep =
float>
50 :
public ImageFunction<TInputImage, typename TInputImage::PixelType, TCoordRep>
88 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
92 EvaluateAtIndex(
const IndexType & index)
const override;
100 this->ConvertPointToNearestIndex(point, index);
101 return this->EvaluateAtIndex(index);
109 this->ConvertContinuousIndexToNearestIndex(cindex, index);
110 return this->EvaluateAtIndex(index);
116 SetNeighborhoodRadius(
unsigned int);
117 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
124 PrintSelf(std::ostream & os,
Indent indent)
const override;
127 unsigned int m_NeighborhoodRadius{ 1 };
130 ImageSizeType::Filled(1)) };
134 #ifndef ITK_MANUAL_INSTANTIATION
135 # include "itkMedianImageFunction.hxx"