diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-20 08:13:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-20 08:13:36 +0200 |
commit | e89c2b1034692eb1365715a089b7035e6d837719 (patch) | |
tree | 1ee2fc1a29c4e62eac403bd2092f0b51943c1578 /ftnoir_tracker_pt/point_extractor.cpp | |
parent | 20827ce134033e2370c6858905d2faca5c240602 (diff) |
pt: change point internal representation
Store points as pixel coordinates, not -0.5->0.5. This has no effect on
tracking as POSIT is robust enough not to care.
Diffstat (limited to 'ftnoir_tracker_pt/point_extractor.cpp')
-rw-r--r-- | ftnoir_tracker_pt/point_extractor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ftnoir_tracker_pt/point_extractor.cpp b/ftnoir_tracker_pt/point_extractor.cpp index e81e3aa0..cc9dbce1 100644 --- a/ftnoir_tracker_pt/point_extractor.cpp +++ b/ftnoir_tracker_pt/point_extractor.cpp @@ -211,8 +211,7 @@ std::vector<Vec2f> PointExtractor::extract_points(Mat& frame) for (auto& b : simple_blob::merge(blobs)) { auto pos = b.effective_pos(); - Vec2f p((pos[0] - W/2)/W, -(pos[1] - H/2)/W); - points.push_back(p); + points.push_back(pos); } vector<Mat> channels_; |