diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-01 04:55:07 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-01 04:55:07 +0100 |
commit | d7e7760a822e62d3f03f51c7b853ad27a998346b (patch) | |
tree | 6b8298aee8f707ab6b269b66ad8b80148eeb76e8 /ftnoir_tracker_aruco | |
parent | b66000f27178f515455a7a62f294062ef81d1ca4 (diff) |
fix typo
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r-- | ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index 218f2d30..7581b77a 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -338,7 +338,7 @@ void Tracker::run() 0, sin(beta), cos(beta) }; cv::Mat rot(3, 3, CV_64F, pitch); - tvec = rot * tvec; + cv::Mat tvec2 = rot * tvec; rotation_matrix = rot * rotation_matrix; cv::Vec3d euler = cv::RQDecomp3x3(rotation_matrix, junk1, junk2); @@ -346,7 +346,7 @@ void Tracker::run() QMutexLocker lck(&mtx); for (int i = 0; i < 3; i++) - pose[i] = tvec.at<double>(i); + pose[i] = tvec2.at<double>(i); pose[Yaw] = euler[1]; pose[Pitch] = -euler[0]; |