Add shared ptr
[trackerpp.git] / src / Metrics.h
index dbfca55..a436321 100644 (file)
@@ -3,27 +3,30 @@
 
 #include <string>
 #include <opencv2/opencv.hpp>
+#include "SharedPtr.h"
 
 namespace suanzi {
 
-class Metrics
-{
-public:
-    Metrics(const std::string& cl_path = "");
-    ~Metrics(){}
-    long int MaxCost = 100000;
-    const static int MaxPatch = 5;
+    TK_DECLARE_PTR(Metrics);
+    TK_DECLARE_PTR(Patch);
+    class Metrics
+    {
+    public:
+        Metrics(const std::string& cl_path = "");
+        ~Metrics(){}
+        long int MaxCost = 100000;
+        const static int MaxPatch = 5;
 
-private:
-    cv::HOGDescriptor descriptor;
-};
+    private:
+        cv::HOGDescriptor descriptor;
+    };
 
-class Patch
-{
-public:
-    Patch(){};
-    ~Patch(){};
-};
+    class Patch
+    {
+    public:
+        Patch(){};
+        ~Patch(){};
+    };
 
 }