21 #ifndef otbRealMomentsImageFunction_h
22 #define otbRealMomentsImageFunction_h
24 #include "itkImageFunction.h"
41 template <
class TInputImage,
class TCoordRep =
double>
43 :
public itk::ImageFunction<TInputImage, std::vector<std::vector<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType>>, TCoordRep>
48 typedef itk::ImageFunction<TInputImage, std::vector<std::vector<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType>>, TCoordRep>
71 itkStaticConstMacro(ImageDimension,
unsigned int, InputImageType::ImageDimension);
80 this->ConvertPointToNearestIndex(point, index);
81 return this->EvaluateAtIndex(index);
86 this->ConvertContinuousIndexToNearestIndex(cindex, index);
87 return this->EvaluateAtIndex(index);
94 itkSetMacro(NeighborhoodRadius,
unsigned int);
95 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
98 itkSetMacro(Pmax,
unsigned int);
99 itkGetConstReferenceMacro(Pmax,
unsigned int);
100 itkSetMacro(Qmax,
unsigned int);
101 itkGetConstReferenceMacro(Qmax,
unsigned int);
108 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
112 void operator=(
const Self&) =
delete;
121 #ifndef OTB_MANUAL_INSTANTIATION