From 8ac0471c1c0c4cdf76f696b7c3c18d1d3a776a78 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Sep 2021 20:58:21 +0200 Subject: tracker/pt: remove arbitrary min brightness threshold --- tracker-pt/module/point_extractor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tracker-pt/module') diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp index 05af99a1..d8a23fcf 100644 --- a/tracker-pt/module/point_extractor.cpp +++ b/tracker-pt/module/point_extractor.cpp @@ -223,9 +223,8 @@ void PointExtractor::threshold_image(const cv::Mat& frame_gray, cv::Mat1b& outpu float const* const __restrict ptr = hist.ptr(0); const unsigned area = unsigned(iround(3 * pi * radius*radius)); const unsigned sz = unsigned(hist.cols * hist.rows); - constexpr unsigned min_thres = 64; - unsigned thres = min_thres; - for (unsigned i = sz-1, cnt = 0; i > 32; i--) + unsigned thres = 1; + for (unsigned i = sz-1, cnt = 0; i > 1; i--) { cnt += (unsigned)ptr[i]; if (cnt >= area) -- cgit v1.2.3