summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-21 09:37:13 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-21 09:37:13 +0100
commit1ccc6bb7888865b38fcd6234040345a0be66ec1d (patch)
tree9392da03fe704ffb328b1419794149a069e0a26c /tracker-pt/point_tracker.cpp
parentd9bef40680c5613397b61cae213f616d3e09f2f1 (diff)
tracker/pt-base: add static pt_camera_info::get_focal_length
For the Wiimote tracker. Adjust usages in tracker/pt. Issue: #718
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r--tracker-pt/point_tracker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp
index 57641d1a..56a029fe 100644
--- a/tracker-pt/point_tracker.cpp
+++ b/tracker-pt/point_tracker.cpp
@@ -92,7 +92,7 @@ PointTracker::PointOrder PointTracker::find_correspondences_previous(const vec2*
const PointModel& model,
const pt_camera_info& info)
{
- const double fx = info.get_focal_length();
+ const double fx = pt_camera_info::get_focal_length(info.fov, info.res_x, info.res_y);
PointTracker::PointOrder p;
p[0] = project(vec3(0,0,0), fx);
p[1] = project(model.M01, fx);
@@ -205,7 +205,7 @@ void PointTracker::track(const std::vector<vec2>& points,
const pt_camera_info& info,
int init_phase_timeout)
{
- const double fx = info.get_focal_length();
+ const double fx = pt_camera_info::get_focal_length(info.fov, info.res_x, info.res_y);
PointOrder order;
if (init_phase_timeout > 0 && t.elapsed_ms() > init_phase_timeout)