18 #ifndef itkVarianceImageFunction_h
19 #define itkVarianceImageFunction_h
42 template <
typename TInputImage,
typename TCoordRep =
float>
44 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
67 using typename Superclass::OutputType;
73 using typename Superclass::ContinuousIndexType;
79 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
86 EvaluateAtIndex(
const IndexType & index)
const override;
94 this->ConvertPointToNearestIndex(
point, index);
95 return this->EvaluateAtIndex(index);
103 this->ConvertContinuousIndexToNearestIndex(cindex, index);
104 return this->EvaluateAtIndex(index);
109 itkSetMacro(NeighborhoodRadius,
unsigned int);
110 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
117 PrintSelf(std::ostream & os,
Indent indent)
const override;
120 unsigned int m_NeighborhoodRadius{};
124 #ifndef ITK_MANUAL_INSTANTIATION
125 # include "itkVarianceImageFunction.hxx"