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;
122 #ifndef OTB_MANUAL_INSTANTIATION
Calculate the radiometric moments.
OutputType Evaluate(const PointType &point) const override
unsigned int m_NeighborhoodRadius
Superclass::ContinuousIndexType ContinuousIndexType
Functor::RadiometricMomentsFunctor< itk::ConstNeighborhoodIterator< InputImageType >, ScalarRealType > FunctorType
RadiometricMomentsImageFunction Self
OutputType::ValueType ScalarRealType
itk::ImageFunction< TInputImage, itk::FixedArray< typename itk::NumericTraits< typename TInputImage::PixelType >::RealType, 4 >, TCoordRep > Superclass
Superclass::OutputType OutputType
~RadiometricMomentsImageFunction() override
TInputImage InputImageType
Superclass::IndexType IndexType
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
itk::SmartPointer< const Self > ConstPointer
Superclass::PointType PointType
RadiometricMomentsImageFunction(const Self &)=delete
void operator=(const Self &)=delete
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.