histogram_of_oriented_gradients.h
Go to the documentation of this file.
1 
2 #ifndef _HISTOGRAM_OF_ORIENTED_GRADIENTS_H_
3 #define _HISTOGRAM_OF_ORIENTED_GRADIENTS_H_
4 
5 // OpenCV Header Directives
6 #include <opencv2/opencv.hpp>
7 #include <opencv2/highgui/highgui.hpp>
8 #include <opencv2/imgproc/imgproc.hpp>
9 #if ( CV_MAJOR_VERSION >= 4)
10 #include <opencv2/imgproc/types_c.h>
11 #endif
12 
13 #include <string>
14 #include <vector>
15 
17 
18  // HOG Configuration Params
19  protected:
20  int N_BINS;
21  int ANGLE;
23  int CELL;
24  int BLOCK;
25 
26  private:
27  virtual void bilinearBinVoting(
28  const float &, int &, int &);
29  virtual void imageGradient(
30  const cv::Mat &, cv::Mat &);
31  virtual cv::Mat blockGradient(
32  const int, const int, cv::Mat &);
33  virtual void getHOG(
34  const cv::Mat &, cv::Mat &, cv::Mat &);
35  template<typename T>
37  const cv::Mat &, std::vector<cv::Mat> &,
38  const int = CV_COMP_BHATTACHARYYA);
39 
40  public:
42  const int = 8, const int = 2, const int = 9,
43  const float = 180.0f);
44  virtual cv::Mat computeHOG(
45  const cv::Mat &);
46 };
47 
48 #endif // _HISTOGRAM_OF_ORIENTED_GRADIENTS_H_
virtual void bilinearBinVoting(const float &, int &, int &)
virtual cv::Mat blockGradient(const int, const int, cv::Mat &)
virtual void getHOG(const cv::Mat &, cv::Mat &, cv::Mat &)
T computeHOGHistogramDistances(const cv::Mat &, std::vector< cv::Mat > &, const int=CV_COMP_BHATTACHARYYA)
virtual void imageGradient(const cv::Mat &, cv::Mat &)
pointer T
virtual cv::Mat computeHOG(const cv::Mat &)
HOGFeatureDescriptor(const int=8, const int=2, const int=9, const float=180.0f)


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Mon May 3 2021 03:03:27