18#ifndef itkMedianImageFunction_h
19#define itkMedianImageFunction_h
48template <
typename TInputImage,
typename TCoordRep =
float>
50 :
public ImageFunction<TInputImage, typename TInputImage::PixelType, TCoordRep>
70 using typename Superclass::InputPixelType;
73 using typename Superclass::OutputType;
79 using typename Superclass::ContinuousIndexType;
88 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
100 this->ConvertPointToNearestIndex(
point, index);
101 return this->EvaluateAtIndex(index);
109 this->ConvertContinuousIndexToNearestIndex(cindex, index);
110 return this->EvaluateAtIndex(index);
117 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
127 unsigned int m_NeighborhoodRadius{ 1 };
130 ImageSizeType::Filled(1)) };
134#ifndef ITK_MANUAL_INSTANTIATION
135# include "itkMedianImageFunction.hxx"
TInputImage::PixelType OutputType
Evaluates a function of an image at specified position.
typename InputImageType::IndexType IndexType
Control indentation during Print() invocation.
Light weight base class for most itk classes.
A templated class holding a geometric point in n-Dimensional space.
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
std::vector< Offset< VImageDimension > > GenerateRectangularImageNeighborhoodOffsets(const Size< VImageDimension > &radius)
*par Constraints *The filter image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents