X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=src%2FMetrics.h;h=c991d9f342226084a5a9accb6f35fc61007f8f6e;hb=2c38aedb2051562fc83dd20037e0f5271355b591;hp=dbfca558807a6b47c760edaa97768a9d091ac67a;hpb=5675c1a74ffcb95725eb11463e51cfebbc88a15e;p=trackerpp.git diff --git a/src/Metrics.h b/src/Metrics.h index dbfca55..c991d9f 100644 --- a/src/Metrics.h +++ b/src/Metrics.h @@ -3,27 +3,30 @@ #include #include +#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(){} + const static long int MaxCost = 100000; + const static int MaxPatch = 5; -private: - cv::HOGDescriptor descriptor; -}; + private: + cv::HOGDescriptor descriptor = {cv::Size(64, 128), cv::Size(16, 16), cv::Size(8, 8), cv::Size(8, 8), 9}; + }; -class Patch -{ -public: - Patch(){}; - ~Patch(){}; -}; + class Patch + { + public: + Patch(){}; + ~Patch(){}; + }; }