ad1a827e841799b2def13b10f80511697f16dfcc
[trackerpp.git] / 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         //double distance()
22
23
24     private:
25         cv::HOGDescriptor descriptor = {cv::Size(64, 128), cv::Size(16, 16), cv::Size(8, 8), cv::Size(8, 8), 9};
26     };
27
28     struct Patch
29     {
30         // bb_ltrb
31         
32         //
33         // image_crop
34         cv::Mat image_crop;
35         //
36         // features
37
38     };
39
40 }
41
42 #endif /* _METRICS_H_ */