summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-26 09:09:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-10-26 17:11:13 +0100
commit48a8485317a90687e51419fe32c512cd1ebb2943 (patch)
tree5148b53a5187c4c83088f524da1cfa50bc2137d7 /opentrack/tracker.cpp
parente5413ce3d7e282fee4f848938ef17b6f80794d77 (diff)
rework accela, less nonsensical user-facing options
Diffstat (limited to 'opentrack/tracker.cpp')
-rw-r--r--opentrack/tracker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index ad1938f9..24482bfc 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -92,12 +92,12 @@ static cv::Matx33d euler_to_rmat(const double* input)
void Tracker::t_compensate(const cv::Matx33d& rmat, const double* xyz, double* output, bool rz)
{
- const double xyz_[3] = { xyz[2], xyz[0], -xyz[1] };
+ const double xyz_[3] = { xyz[2], -xyz[0], -xyz[1] };
cv::Matx31d tvec(xyz_);
const cv::Matx31d ret = rmat * tvec;
if (!rz)
output[2] = ret(0, 0);
- output[0] = ret(1, 0);
+ output[0] = -ret(1, 0);
output[1] = -ret(2, 0);
}