diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-10-11 07:02:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-10-11 07:02:44 +0200 |
commit | 298642b480fd7967193df2813109a7f6fede31a9 (patch) | |
tree | d02291ab3328dbcee3cca5bb9fd19ba576151dd0 /tracker-pt/point_extractor.cpp | |
parent | 4f422997c26278963217029a6875939b595d0ede (diff) |
tracker/pt: increase min point radius to sensible value
We can't possibly have LEDs smaller than (6/3=2) each.
Especially not (2.5/6).
Diffstat (limited to 'tracker-pt/point_extractor.cpp')
-rw-r--r-- | tracker-pt/point_extractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index 7cd46fe2..ee508b22 100644 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -64,7 +64,7 @@ void PointExtractor::extract_points(cv::Mat& frame, std::vector<vec2>& points) const int sz = hist.cols * hist.rows; int thres = 255; int cnt = 0; - constexpr double min_radius = 2.5; + constexpr double min_radius = 6; constexpr double max_radius = 15; const double radius = max(0., (max_radius-min_radius) * s.threshold / 256); const int area = int(round(3 * M_PI * (min_radius + radius)*(min_radius+radius))); |