From 2f05c6c9e9caff33f8945aaf8a52019b5557a810 Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Sun, 31 Mar 2019 22:01:36 +0200 Subject: Translations now in centimetres. --- tracker-points/ftnoir_tracker_pt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracker-points/ftnoir_tracker_pt.cpp b/tracker-points/ftnoir_tracker_pt.cpp index 8d152f65..61900045 100644 --- a/tracker-points/ftnoir_tracker_pt.cpp +++ b/tracker-points/ftnoir_tracker_pt.cpp @@ -153,8 +153,8 @@ void Tracker_PT::run() // We are converting them from millimeters to meters. // TODO: Need to support clip too. That's cap only for now. std::vector objectPoints; - objectPoints.push_back(cv::Point3f(s.cap_x/1000.0, s.cap_z / 1000.0, -s.cap_y / 1000.0)); // Right - objectPoints.push_back(cv::Point3f(-s.cap_x/1000.0, s.cap_z / 1000.0, -s.cap_y / 1000.0)); // Left + objectPoints.push_back(cv::Point3f(s.cap_x/10.0, s.cap_z / 10.0, -s.cap_y / 10.0)); // Right + objectPoints.push_back(cv::Point3f(-s.cap_x/10.0, s.cap_z / 10.0, -s.cap_y / 10.0)); // Left objectPoints.push_back(cv::Point3f(0, 0, 0)); // Top //Bitmap origin is top left -- cgit v1.2.3