summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-05 21:11:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-01-05 21:11:19 +0100
commit8c93f1bcfa8d7bba8b70a6b521baf43fc619eeda (patch)
tree0c0c32a753e0d6625697bc7b38dbcfc139cac795 /tracker-pt
parent4b77e13d86135b55bd33de49322ed42219680162 (diff)
Revert "Revert "tracker/pt: remove arbitrary min brightness threshold""
This reverts commit d98d36c9acc66fb3158f77274189c92b1330fbf6.
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/module/point_extractor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tracker-pt/module/point_extractor.cpp b/tracker-pt/module/point_extractor.cpp
index 4a715496..804245d2 100644
--- a/tracker-pt/module/point_extractor.cpp
+++ b/tracker-pt/module/point_extractor.cpp
@@ -216,9 +216,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)