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;
121 #ifndef OTB_MANUAL_INSTANTIATION
Calculate the moment values in the specified neighborhood.
RealMomentsImageFunction(const Self &)=delete
RealMomentsImageFunction Self
itk::ImageFunction< TInputImage, std::vector< std::vector< typename itk::NumericTraits< typename TInputImage::PixelType >::RealType > >, TCoordRep > Superclass
Superclass::IndexType IndexType
TInputImage InputImageType
Superclass::OutputType OutputType
Superclass::ContinuousIndexType ContinuousIndexType
OutputType Evaluate(const PointType &point) const override
void operator=(const Self &)=delete
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
unsigned int m_NeighborhoodRadius
Superclass::PointType PointType
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
~RealMomentsImageFunction() override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.