diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 20:58:21 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 21:10:13 +0200 |
commit | 8ac0471c1c0c4cdf76f696b7c3c18d1d3a776a78 (patch) | |
tree | 1f05b14bb187632d43a9e474fa32369c6c87b880 /tracker-pt/module/point_extractor.cpp | |
parent | 285c75682f1e93a8809876ec7b2f6cd2cc79931d (diff) |
tracker/pt: remove arbitrary min brightness threshold
Diffstat (limited to 'tracker-pt/module/point_extractor.cpp')
-rw-r--r-- | tracker-pt/module/point_extractor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<float>(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) |