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