diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-24 07:25:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-24 07:25:27 +0200 |
commit | d1485873f18d04d8c2aad28d67c51c25a6653d04 (patch) | |
tree | 3a0cf612488f72302f3887f801d3c9cf96b9f512 /ftnoir_tracker_pt/point_extractor.cpp | |
parent | b0f6b7de714e20a2f36d56a01c99522722218657 (diff) |
Revert "pt: change point internal representation"opentrack-2.3-rc15p1
This reverts commit e89c2b1034692eb1365715a089b7035e6d837719.
Issue: #199
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_; |