18 #ifndef itkMeanImageFunction_h
19 #define itkMeanImageFunction_h
44 template<
typename TInputImage,
typename TCoordRep =
float >
47 typename NumericTraits< typename TInputImage::PixelType >::RealType,
84 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
97 this->ConvertPointToNearestIndex(point, index);
98 return this->EvaluateAtIndex(index);
106 this->ConvertContinuousIndexToNearestIndex(cindex, index);
107 return this->EvaluateAtIndex(index);
112 itkSetMacro(NeighborhoodRadius,
unsigned int);
113 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
119 void PrintSelf(std::ostream & os,
Indent indent)
const override;
122 unsigned int m_NeighborhoodRadius{ 1 };
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkMeanImageFunction.hxx"
Light weight base class for most itk classes.
Calculate the mean value in the neighborhood of a pixel.
Define numeric traits for std::vector.
typename Superclass::OutputType OutputType
TInputImage InputImageType
typename Superclass::PointType PointType
typename Superclass::IndexType IndexType
RealType Evaluate(const PointType &point) const override
typename Superclass::ContinuousIndexType ContinuousIndexType
ImageBaseType::IndexType IndexType
typename NumericTraits< typename InputImageType::PixelType >::RealType RealType
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
Evaluates a function of an image at specified position.