summaryrefslogtreecommitdiffhomepage
path: root/tracker-points
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-24 18:46:12 +0200
commiteb77f73826a26ad1dea84e3ea0173bb952a46e26 (patch)
treeab986a070331c82c6a088c61561878255fe4a62c /tracker-points
parentc7df551561ca7bd7ae22abecc562cd882259f748 (diff)
Translations now in centimetres.
Diffstat (limited to 'tracker-points')
-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