Direct Graphical Models  v.1.7.0
Intensity.h
1 // Intensity 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 {
9  // ================================ Intensity Class ==============================
15  {
16  public:
21  DllExport CIntensity(const Mat &img) : ILocalFeatureExtractor(img) {}
22  DllExport virtual ~CIntensity(void) {}
23 
24  DllExport virtual Mat get(void) const {return get(m_img);}
25 
33  DllExport static Mat get(const Mat &img, cv::Scalar weight = CV_RGB(0.333, 0.333, 0.333));
34  };
35 } }
Intensity feature extraction class.
Definition: Intensity.h:14
CIntensity(const Mat &img)
Constructor.
Definition: Intensity.h:21
Interface class for local feature extraction algorithms.
const Mat m_img
Container for the image, from which the features are to be extracted.