summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/point_extractor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-24 12:21:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-24 12:21:17 +0200
commitfc0fbba6d8c446ffdff67e4d95a7ae907abb6fed (patch)
tree33cdd385c2e26e0b90d17ff3dad848a4430f800e /ftnoir_tracker_pt/point_extractor.cpp
parentfb4bf3cc0b0a7b7773a9662a98a2c5b7f0a69a9a (diff)
parentd1485873f18d04d8c2aad28d67c51c25a6653d04 (diff)
Merge branch 'unstable' into trackhat-ui
Diffstat (limited to 'ftnoir_tracker_pt/point_extractor.cpp')
-rw-r--r--ftnoir_tracker_pt/point_extractor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_tracker_pt/point_extractor.cpp b/ftnoir_tracker_pt/point_extractor.cpp
index cc9dbce1..e81e3aa0 100644
--- a/ftnoir_tracker_pt/point_extractor.cpp
+++ b/ftnoir_tracker_pt/point_extractor.cpp
@@ -211,7 +211,8 @@ std::vector<Vec2f> PointExtractor::extract_points(Mat& frame)
for (auto& b : simple_blob::merge(blobs))
{
auto pos = b.effective_pos();
- points.push_back(pos);
+ Vec2f p((pos[0] - W/2)/W, -(pos[1] - H/2)/W);
+ points.push_back(p);
}
vector<Mat> channels_;