diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-03-31 22:01:36 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-12 21:04:37 +0200 |
commit | 2f05c6c9e9caff33f8945aaf8a52019b5557a810 (patch) | |
tree | fc784590afaa6706c39f2f888e29cf0b0f603a36 | |
parent | ee9a14cd11763bd8fc9be2ebf86deb86d31606e7 (diff) |
Translations now in centimetres.
-rw-r--r-- | tracker-points/ftnoir_tracker_pt.cpp | 4 |
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 |