21 #ifndef otbHistogramOfOrientedGradientCovariantImageFunction_h
22 #define otbHistogramOfOrientedGradientCovariantImageFunction_h
24 #include "itkImageFunction.h"
25 #include "itkFixedArray.h"
70 template <
class TInputImage,
class TOutputPrecision =
double,
class TCoordRep =
double>
72 :
public itk::ImageFunction<TInputImage, std::vector<std::vector<TOutputPrecision>>, TCoordRep>
77 typedef itk::ImageFunction<TInputImage, std::vector<std::vector<TOutputPrecision>>, TCoordRep>
Superclass;
100 itkStaticConstMacro(ImageDimension,
unsigned int, InputImageType::ImageDimension);
109 this->ConvertPointToNearestIndex(point, index);
110 return this->EvaluateAtIndex(index);
115 this->ConvertContinuousIndexToNearestIndex(cindex, index);
116 return this->EvaluateAtIndex(index);
123 itkSetMacro(NeighborhoodRadius,
unsigned int);
124 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
129 itkSetMacro(NumberOfOrientationBins,
unsigned int);
130 itkGetConstReferenceMacro(NumberOfOrientationBins,
unsigned int);
139 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
154 #ifndef OTB_MANUAL_INSTANTIATION
Calculate the centered HOG features.
Superclass::ContinuousIndexType ContinuousIndexType
HistogramOfOrientedGradientCovariantImageFunction Self
Superclass::PointType PointType
unsigned int m_NeighborhoodRadius
HistogramOfOrientedGradientCovariantImageFunction(const Self &)=delete
InputImageType::PixelType InputPixelType
TInputImage InputImageType
itk::ImageFunction< TInputImage, std::vector< std::vector< TOutputPrecision > >, TCoordRep > Superclass
void operator=(const Self &)=delete
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
Superclass::OutputType OutputType
TOutputPrecision OutputPrecisionType
~HistogramOfOrientedGradientCovariantImageFunction() override
unsigned int m_NumberOfOrientationBins
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
Superclass::IndexType IndexType
OutputType Evaluate(const PointType &point) const override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.