Direct Graphical Models  v.1.7.0
Variance.h
1 // Variance 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 CVariance(const Mat &img) : ILocalFeatureExtractor(img) {}
23  DllExport virtual ~CVariance(void) {}
24 
25  DllExport virtual Mat get(void) const { return get(m_img); }
26 
34  DllExport static Mat get(const Mat &img, SqNeighbourhood nbhd = sqNeighbourhood(5));
35  };
36 } }
Variance feature extraction class.
Definition: Variance.h:15
SqNeighbourhood sqNeighbourhood(int leftGap, int rightGap, int upperGap, int lowerGap)
Initializes the square neighborhood structure.
CVariance(const Mat &img)
Constructor.
Definition: Variance.h:22
Interface class for local feature extraction algorithms.
const Mat m_img
Container for the image, from which the features are to be extracted.