summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-30 07:33:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-30 07:33:23 +0100
commit7b81b27f70cb5169bbd61de7cc6628dac5620cc8 (patch)
treec01920bce45c02a913d363f8c37e7c143746b9a3 /ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
parentca441d95ea699597dc34dedf57dad5fbf11a4573 (diff)
pt: undo swap axis for data, and for display
Issue: #106
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.cpp')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index 7be8ac03..f6017ee0 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -82,7 +82,7 @@ void Tracker::run()
{
Affine CM;
pose(&CM);
- cv::Vec3f MH(-s.t_MH_x, -s.t_MH_y, -s.t_MH_z);
+ cv::Vec3f MH(s.t_MH_x, s.t_MH_y, s.t_MH_z);
cv::Vec3f p = CM.t - MH;
float fx = get_focal_length();
cv::Vec2f p_(p[0] / p[2] * fx, p[1] / p[2] * fx);
@@ -162,7 +162,7 @@ void Tracker::data(THeadPoseData *data)
Affine X_CM = point_tracker.pose();
- Affine X_MH(Matx33f::eye(), cv::Vec3f(-s.t_MH_x, -s.t_MH_y, -s.t_MH_z));
+ Affine X_MH(Matx33f::eye(), cv::Vec3f(-s.t_MH_x, s.t_MH_y, s.t_MH_z));
Affine X_GH = X_CM * X_MH;
Matx33f R = X_GH.R;