-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathColorFeatureExtractor.h
executable file
·47 lines (33 loc) · 1.05 KB
/
ColorFeatureExtractor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// ColorFeatureExtractor.h
// segmenthreetion
//
// Created by Albert Clapés on 13/02/14.
//
//
#ifndef __segmenthreetion__ColorFeatureExtractor__
#define __segmenthreetion__ColorFeatureExtractor__
#include "FeatureExtractor.h"
#include "ColorParametrization.hpp"
#define M_PI 3.14159
using namespace std;
class ColorFeatureExtractor : public FeatureExtractor
{
public:
ColorFeatureExtractor();
ColorFeatureExtractor(ColorParametrization dParam);
void setParam(ColorParametrization dParam);
void describe(ModalityGridData& data);
void describe(GridMat grid, GridMat gmask, cv::Mat gvalidness, GridMat& gdescriptors);
cv::Mat get_hogdescriptor_visu(cv::Mat origImg, cv::Mat mask, vector<float> descriptorValues);
private:
/*
* Class attributes
*/
ColorParametrization m_ColorParam;
/*
* Private methods
*/
void describeColorHog(const cv::Mat cell, const cv::Mat mask, cv::Mat & cOrientedGradsHist);
};
#endif /* defined(__segmenthreetion__ColorFeatureExtractor__) */