21 #ifndef otbRadiometricMomentsImageFunction_h
22 #define otbRadiometricMomentsImageFunction_h
24 #include "itkImageFunction.h"
26 #include "itkConstNeighborhoodIterator.h"
27 #include "itkFixedArray.h"
47 template <
class TInputImage,
class TCoordRep =
double>
49 :
public itk::ImageFunction<TInputImage, itk::FixedArray<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, 4>, TCoordRep>
54 typedef itk::ImageFunction<TInputImage, itk::FixedArray<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, 4>, TCoordRep>
Superclass;
78 itkStaticConstMacro(ImageDimension,
unsigned int, InputImageType::ImageDimension);
87 this->ConvertPointToNearestIndex(point, index);
88 return this->EvaluateAtIndex(index);
93 this->ConvertContinuousIndexToNearestIndex(cindex, index);
94 return this->EvaluateAtIndex(index);
101 itkSetMacro(NeighborhoodRadius,
unsigned int);
102 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
110 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
114 void operator=(
const Self&) =
delete;
122 #ifndef OTB_MANUAL_INSTANTIATION