Direct Graphical Models  v.1.7.0
HOG.h
1 // HOG feature extraction class interface
2 // Written by Sergey G. Kosov in 2015 for Project X
3 #pragma once
4 
5 #include "ILocalFeatureExtractor.h"
6 #include "SquareNeighborhood.h"
7 
8 namespace DirectGraphicalModels { namespace fex
9 {
10  // ================================ HOG Class ==============================
16  {
17  public:
22  DllExport CHOG(const Mat &img) : ILocalFeatureExtractor(img) {}
23  DllExport virtual ~CHOG(void) {}
24 
25  DllExport virtual Mat get(void) const { return get(m_img); }
26 
36  DllExport static Mat get(const Mat &img, int nBins = 9, SqNeighbourhood nbhd = sqNeighbourhood(5));
37  };
38 } }
CHOG(const Mat &img)
Constructor.
Definition: HOG.h:22
SqNeighbourhood sqNeighbourhood(int leftGap, int rightGap, int upperGap, int lowerGap)
Initializes the square neighborhood structure.
Interface class for local feature extraction algorithms.
HOG (histogram of oriented gradients) feature extraction class.
Definition: HOG.h:15
const Mat m_img
Container for the image, from which the features are to be extracted.