summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-01-24 15:16:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-01-24 15:16:06 +0100
commit9147e33c548fba3cf9baf267fc46517cabbbb487 (patch)
treeb396f42ba00e30543ca82fbcbefa4ba38596420d
parent30d1bdf2051834b368eb87af6dc4c5da0d962e67 (diff)
pt: make translation consistent with model position
Issue: #106
-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 fdd59b6d..fc5e5b99 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -165,7 +165,7 @@ void Tracker::data(THeadPoseData *data)
Affine X_GH = X_CM * X_MH;
Matx33f R = X_GH.R * X_MH.R.t();
- Vec3f t = X_GH.t - X_MH.t;
+ Vec3f t = X_GH.t;
// translate rotation matrix from opengl (G) to roll-pitch-yaw (E) frame
// -z -> x, y -> z, x -> -y