summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-11 18:07:48 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-11 18:07:48 +0100
commit7da7a26385c1d54762d6f2d11a7036d856bc5864 (patch)
treecc7b5d99d250b0dc840ea5618d6cc1541b4502ac /FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
parentd9953cc2cdb7c679f7df2cfb118644cb81d23bbd (diff)
use correct scale for point coords
Diffstat (limited to 'FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp')
-rw-r--r--FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
index c94fa3ff..9f74127f 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp
@@ -86,7 +86,7 @@ void Tracker::run()
for (auto p : points)
{
auto p2 = cv::Point(p[0] * frame.cols + frame.cols/2,
- p[1] * frame.rows + frame.rows/2);
+ -p[1] * frame.cols + frame.rows/2);
cv::Scalar color(0, 255, 0);
qDebug() << p2.x << p2.y;
cv::line(frame,