Add boost python, and predictor wrapper
[trackerpp.git] / include / Metrics.h
1 #ifndef _METRICS_H_
2 #define _METRICS_H_
3
4 #include <string>
5 #include <opencv2/opencv.hpp>
6 #include "SharedPtr.h"
7
8 namespace suanzi {
9
10     TK_DECLARE_PTR(Metrics);
11     //TK_DECLARE_PTR(Patch);
12     struct Patch;
13     class Metrics
14     {
15     public:
16         Metrics(const std::string& cl_path = "");
17         ~Metrics(){}
18         const static long int MaxCost = 100000;
19         const static int MaxPatch = 5;
20         void similarity(const Patch& p1, const Patch& p2);
21
22
23     private:
24         cv::HOGDescriptor descriptor = {cv::Size(64, 128), cv::Size(16, 16), cv::Size(8, 8), cv::Size(8, 8), 9};
25     };
26
27     struct Patch
28     {
29         // bb_ltrb
30         
31         //
32         // image_crop
33         cv::Mat image_crop;
34         //
35         // features
36
37     };
38
39 }
40
41 #endif /* _METRICS_H_ */