diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-24 12:21:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-24 12:21:17 +0200 |
commit | fc0fbba6d8c446ffdff67e4d95a7ae907abb6fed (patch) | |
tree | 33cdd385c2e26e0b90d17ff3dad848a4430f800e /ftnoir_tracker_pt/point_extractor.cpp | |
parent | fb4bf3cc0b0a7b7773a9662a98a2c5b7f0a69a9a (diff) | |
parent | d1485873f18d04d8c2aad28d67c51c25a6653d04 (diff) |
Merge branch 'unstable' into trackhat-ui
Diffstat (limited to 'ftnoir_tracker_pt/point_extractor.cpp')
-rw-r--r-- | ftnoir_tracker_pt/point_extractor.cpp | 3 |
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_; |