summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-10-11 07:02:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-10-11 07:02:44 +0200
commit298642b480fd7967193df2813109a7f6fede31a9 (patch)
treed02291ab3328dbcee3cca5bb9fd19ba576151dd0 /tracker-pt
parent4f422997c26278963217029a6875939b595d0ede (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')
-rw-r--r--tracker-pt/point_extractor.cpp2
-rw-r--r--tracker-pt/point_tracker.cpp1
2 files changed, 1 insertions, 2 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)));
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp
index d2071556..990ec512 100644
--- a/tracker-pt/point_tracker.cpp
+++ b/tracker-pt/point_tracker.cpp
@@ -15,7 +15,6 @@ using namespace pt_types;
#include <vector>
#include <algorithm>
#include <cmath>
-#include <iterator>
#include <QDebug>