X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;ds=sidebyside;f=include%2FMetrics.h;h=3da8014a4a9d9710b11fe5ce145cde3deaa4ed46;hb=48adce31a0ffdb3757ee1be8a63ce7e769e87deb;hp=c991d9f342226084a5a9accb6f35fc61007f8f6e;hpb=e45efc2cf76f6dc89e8b02484bf69a400cb93cf9;p=trackerpp.git diff --git a/include/Metrics.h b/include/Metrics.h index c991d9f..3da8014 100644 --- a/include/Metrics.h +++ b/include/Metrics.h @@ -8,7 +8,8 @@ namespace suanzi { TK_DECLARE_PTR(Metrics); - TK_DECLARE_PTR(Patch); + //TK_DECLARE_PTR(Patch); + struct Patch; class Metrics { public: @@ -16,16 +17,23 @@ namespace suanzi { ~Metrics(){} const static long int MaxCost = 100000; const static int MaxPatch = 5; + void similarity(const Patch& p1, const Patch& p2); + private: cv::HOGDescriptor descriptor = {cv::Size(64, 128), cv::Size(16, 16), cv::Size(8, 8), cv::Size(8, 8), 9}; }; - class Patch + struct Patch { - public: - Patch(){}; - ~Patch(){}; + // bb_ltrb + + // + // image_crop + cv::Mat image_crop; + // + // features + }; }