18 #ifndef itkMeanImageFunction_h
19 #define itkMeanImageFunction_h
48 template <
typename TInputImage,
typename TCoordRep =
float>
50 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
73 using typename Superclass::InputPixelType;
91 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
98 EvaluateAtIndex(
const IndexType & index)
const override;
106 this->ConvertPointToNearestIndex(point, index);
107 return this->EvaluateAtIndex(index);
115 this->ConvertContinuousIndexToNearestIndex(cindex, index);
116 return this->EvaluateAtIndex(index);
122 SetNeighborhoodRadius(
unsigned int);
123 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
130 PrintSelf(std::ostream & os,
Indent indent)
const override;
133 unsigned int m_NeighborhoodRadius{ 1 };
136 ImageSizeType::Filled(1)) };
140 #ifndef ITK_MANUAL_INSTANTIATION
141 # include "itkMeanImageFunction.hxx"