diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-12 19:50:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-12 19:50:06 +0100 |
commit | 421f63c8ff3d434fec8a93e38e9178cdb3c593c6 (patch) | |
tree | 4ae2b77cc5cb27a87b065e9271a6270b6d396e9d /FTNoIR_Tracker_PT | |
parent | 4e4e72f6c9c2c133f050c04c4f9117aebfd1ee4b (diff) |
Revert "fix translation estimation"
This reverts commit 5cf25c6d0e524d21ea3eb9691f922b8c9b2fd73d.
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r-- | FTNoIR_Tracker_PT/point_tracker.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/FTNoIR_Tracker_PT/point_tracker.cpp b/FTNoIR_Tracker_PT/point_tracker.cpp index 2dd89aed..a881da62 100644 --- a/FTNoIR_Tracker_PT/point_tracker.cpp +++ b/FTNoIR_Tracker_PT/point_tracker.cpp @@ -240,11 +240,9 @@ void PointTracker::POSIT(float fov, int w, int h) obj_points.push_back(point_model->M01);
obj_points.push_back(point_model->M02);
- for (int i = 0; i < 3; i++)
- {
- auto p2 = cv::Point(p[i][0] * w + w/2, p[i][1] * h + h/2);
- img_points.push_back(p2);
- }
+ img_points.push_back(p[0]);
+ img_points.push_back(p[1]);
+ img_points.push_back(p[2]);
const float HT_PI = 3.1415926535;
|