summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-03-31 22:01:36 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-12 21:04:37 +0200
commit2f05c6c9e9caff33f8945aaf8a52019b5557a810 (patch)
treefc784590afaa6706c39f2f888e29cf0b0f603a36
parentee9a14cd11763bd8fc9be2ebf86deb86d31606e7 (diff)
Translations now in centimetres.
-rw-r--r--tracker-points/ftnoir_tracker_pt.cpp4
1 files 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<cv::Point3f> 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