Direct Graphical Models  v.1.7.0
Coordinate.h
1 // Coordinate feature extraction class interface
2 // Written by Sergey G. Kosov in 2015 for Project X
3 #pragma once
4 
5 #include "ILocalFeatureExtractor.h"
6 
7 namespace DirectGraphicalModels { namespace fex
8 {
16  };
17 
18  // ================================ Coordinate Class ==============================
25  {
26  public:
31  DllExport CCoordinate(const Mat &img) : ILocalFeatureExtractor(img) {}
32  DllExport virtual ~CCoordinate(void) {}
33 
34  DllExport virtual Mat get(void) const {return get(m_img);}
35 
43  DllExport static Mat get(const Mat &img, coordinateType type = COORDINATE_ORDINATE);
44  };
45 } }
Coordinate feature depend on the pixel's ordinate (y-coordinate).
Definition: Coordinate.h:13
Coordinate feature depend on the pixel's absciss (x-coordinate).
Definition: Coordinate.h:14
Coordinate feature depend on the pixel's distance to the image center.
Definition: Coordinate.h:15
Coordinate feature extraction class.
Definition: Coordinate.h:24
Interface class for local feature extraction algorithms.
const Mat m_img
Container for the image, from which the features are to be extracted.
CCoordinate(const Mat &img)
Constructor.
Definition: Coordinate.h:31
coordinateType
Types of the coordinate feature.
Definition: Coordinate.h:12