From 94226df9ba710ee8bf5a28baeebbb5d470796e24 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 12 Jan 2014 01:44:17 +0100 Subject: correct aruco min pitch equation --- ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp') diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index be5d0f32..cbd9f531 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -284,7 +284,7 @@ void Tracker::run() m, cv::Size(5, 5), cv::Size(-1, -1), cv::TermCriteria(cv::TermCriteria::MAX_ITER | cv::TermCriteria::EPS, - 10, + 20, 1e-2)); const float size = 7; @@ -338,7 +338,7 @@ void Tracker::run() { cv::Vec3d euler = cv::RQDecomp3x3(rotation_matrix, junk1, junk2); - if (fabs(euler[0] - last_pitch) > pitch_eps || euler[0] < 0) + if (fabs(euler[0] - last_pitch) > pitch_eps || euler[0] - s.marker_pitch < 0) { first = true; last_pitch = euler[0]; -- cgit v1.2.3