diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-09-04 10:13:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-09-04 10:13:25 +0200 |
commit | 19ccb520c0216f3e98e8d8f0ed4c504fb1c24f10 (patch) | |
tree | 3f35432e84a364095de9a5e89af9348b5ef4df9c /ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | |
parent | b853b4877632ee16d3ba3226edcfa371398e8cb0 (diff) |
pt: change extraction code
Point size is now specified by its radius.
Points are extracted in one pass, using multiple passes caused missed
detection for some users.
Circularity is now displayed as part of overlay.
Points are now sorted by circularity, which is our confidence metric.
Tracker code ignores additional points, keeping only those with the
highest confidence metric.
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.cpp')
-rw-r--r-- | ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp index 4fa70ccf..19d1bd7f 100644 --- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp +++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp @@ -93,6 +93,10 @@ void Tracker_PT::run() QMutexLocker lock(&mutex); std::vector<cv::Vec2f> points = point_extractor.extract_points(frame); + + // blobs are sorted in order of circularity + if (points.size() > PointModel::N_POINTS) + points.resize(PointModel::N_POINTS); bool success = points.size() == PointModel::N_POINTS; |