diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 18:07:48 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-11 18:07:48 +0100 |
commit | 7da7a26385c1d54762d6f2d11a7036d856bc5864 (patch) | |
tree | cc7b5d99d250b0dc840ea5618d6cc1541b4502ac /FTNoIR_Tracker_PT/point_tracker.cpp | |
parent | d9953cc2cdb7c679f7df2cfb118644cb81d23bbd (diff) |
use correct scale for point coords
Diffstat (limited to 'FTNoIR_Tracker_PT/point_tracker.cpp')
-rw-r--r-- | FTNoIR_Tracker_PT/point_tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_PT/point_tracker.cpp b/FTNoIR_Tracker_PT/point_tracker.cpp index 69d46645..faac9963 100644 --- a/FTNoIR_Tracker_PT/point_tracker.cpp +++ b/FTNoIR_Tracker_PT/point_tracker.cpp @@ -244,7 +244,7 @@ void PointTracker::POSIT(float fov, int w, int h) for (int i = 0; i < 3; i++)
{
- auto p2 = cv::Point(p[i][0] * w + w/2, p[i][1] * h + h/2);
+ auto p2 = cv::Point(p[i][0] * w + w/2, -p[i][1] * h + w/2);
img_points.push_back(p2);
}
|