diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-21 09:37:13 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-21 09:37:13 +0100 |
commit | 1ccc6bb7888865b38fcd6234040345a0be66ec1d (patch) | |
tree | 9392da03fe704ffb328b1419794149a069e0a26c /tracker-pt/ftnoir_tracker_pt.cpp | |
parent | d9bef40680c5613397b61cae213f616d3e09f2f1 (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/ftnoir_tracker_pt.cpp')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index 05959066..af086e5c 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -59,14 +59,14 @@ void Tracker_PT::run() while(!isInterruptionRequested()) { - pt_camera_info cam_info; + pt_camera_info info; bool new_frame = false; { QMutexLocker l(&camera_mtx); if (camera) - std::tie(new_frame, cam_info) = camera->get_frame(*frame); + std::tie(new_frame, info) = camera->get_frame(*frame); } if (new_frame) @@ -76,7 +76,7 @@ void Tracker_PT::run() point_extractor->extract_points(*frame, *preview_frame, points); point_count = points.size(); - const double fx = cam_info.get_focal_length(); + const double fx = pt_camera_info::get_focal_length(info.fov, info.res_x, info.res_y); const bool success = points.size() >= PointModel::N_POINTS; @@ -84,7 +84,7 @@ void Tracker_PT::run() { point_tracker.track(points, PointModel(s), - cam_info, + info, s.dynamic_pose ? s.init_phase_timeout : 0); ever_success = true; } |