summaryrefslogtreecommitdiffhomepage
path: root/tracker-neuralnet
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-30 16:19:28 +0200
committerGitHub <noreply@github.com>2023-09-30 16:19:28 +0200
commitd1f3134c2889bb8a2016be77c497d15cad2abf35 (patch)
treeb6119cf643dae528c7de4ca3b0dcbd35e7ad359f /tracker-neuralnet
parent401885bd9398bbfc219c03f15172d2bb2ff2ab83 (diff)
parent5a0e3201b7aef995ae20c1ed35bc383487281679 (diff)
Merge pull request #1731 from DaWelter/nntracker-fix-roll
Diffstat (limited to 'tracker-neuralnet')
-rw-r--r--tracker-neuralnet/ftnoir_tracker_neuralnet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
index 59e17063..4ee8de1e 100644
--- a/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
+++ b/tracker-neuralnet/ftnoir_tracker_neuralnet.cpp
@@ -652,7 +652,7 @@ void NeuralNetTracker::data(double *data)
const auto& mx = tmp.R.col(0);
const auto& my = tmp.R.col(1);
- const auto& mz = -tmp.R.col(2);
+ const auto& mz = tmp.R.col(2);
const float yaw = std::atan2(mx(2), mx(0));
const float pitch = -std::atan2(-mx(1), std::sqrt(mx(2)*mx(2)+mx(0)*mx(0)));