21 #ifndef otbHuMomentsImageFunction_h
22 #define otbHuMomentsImageFunction_h
24 #include "itkImageFunction.h"
25 #include "itkFixedArray.h"
66 template <
class TInputImage,
class TCoordRep =
double>
68 :
public itk::ImageFunction<TInputImage, itk::FixedArray<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, 7>, TCoordRep>
73 typedef itk::ImageFunction<TInputImage, itk::FixedArray<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, 7>, TCoordRep>
Superclass;
95 itkStaticConstMacro(ImageDimension,
unsigned int, InputImageType::ImageDimension);
104 this->ConvertPointToNearestIndex(point, index);
105 return this->EvaluateAtIndex(index);
110 this->ConvertContinuousIndexToNearestIndex(cindex, index);
111 return this->EvaluateAtIndex(index);
118 itkSetMacro(NeighborhoodRadius,
unsigned int);
119 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
127 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
138 #ifndef OTB_MANUAL_INSTANTIATION
Calculate the Hu's invariant parameters.
itk::SmartPointer< const Self > ConstPointer
Superclass::IndexType IndexType
~HuMomentsImageFunction() override
OutputType Evaluate(const PointType &point) const override
unsigned int m_NeighborhoodRadius
HuMomentsImageFunction Self
HuMomentsImageFunction(const Self &)=delete
itk::SmartPointer< Self > Pointer
TInputImage InputImageType
Superclass::PointType PointType
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::OutputType OutputType
void operator=(const Self &)=delete
itk::ImageFunction< TInputImage, itk::FixedArray< typename itk::NumericTraits< typename TInputImage::PixelType >::RealType, 7 >, TCoordRep > Superclass
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
OutputType::ValueType ScalarRealType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.