From fb7e86d02e1d9a15dedad048aa477c1985423057 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 27 Apr 2016 08:00:58 +0200 Subject: tracker/pt: sensible max point size --- tracker-pt/point_extractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index 87a60e51..19d8111f 100755 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -118,7 +118,7 @@ const std::vector& PointExtractor::extract_points(cv::Mat& frame) const int sz = hist.cols * hist.rows; int val = 0; int cnt = 0; - constexpr int min_pixels = 250; + constexpr int min_pixels = 20; const auto pixels_to_include = std::max(0, min_pixels * s.threshold/100.); auto ptr = reinterpret_cast(hist.ptr(0)); for (int i = sz-1; i >= 0; i--) -- cgit v1.2.3