18 #ifndef itkMedianImageFunction_h
19 #define itkMedianImageFunction_h
46 template<
typename TInputImage,
typename TCoordRep =
float >
48 public ImageFunction< TInputImage, typename TInputImage::PixelType,
85 static constexpr
unsigned int ImageDimension = 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 override;
120 unsigned int m_NeighborhoodRadius{1};
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkMedianImageFunction.hxx"
Light weight base class for most itk classes.
ImageBaseType::IndexType IndexType
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
Evaluates a function of an image at specified position.