18 #ifndef itkMedianImageFunction_h
19 #define itkMedianImageFunction_h
46 template<
typename TInputImage,
typename 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 ITK_OVERRIDE;
127 #ifndef ITK_MANUAL_INSTANTIATION
128 #include "itkMedianImageFunction.hxx"
Light weight base class for most itk classes.
ImageBaseType::PointType PointType
Control indentation during Print() invocation.
Evaluates a function of an image at specified position.
ImageBaseType::IndexType IndexType