diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-22 07:58:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-22 07:58:42 +0200 |
commit | b253d56527365a729c0249918f6c9477893a717e (patch) | |
tree | ee10ce89c268c0566005d25fa4d49ba5cc51da41 /tracker-pt/point_tracker.cpp | |
parent | 4e03f244450cbfd8a5a1cf429515ce0194f66262 (diff) |
tracker/pt: return focal length directly
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r-- | tracker-pt/point_tracker.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index ae873ef6..b87c38d1 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 CamInfo& info) { - double fx; info.get_focal_length(fx); + const double fx = info.get_focal_length(); PointTracker::PointOrder p; p[0] = project(vec3(0,0,0), fx); p[1] = project(model.M01, fx); @@ -205,8 +205,7 @@ void PointTracker::track(const std::vector<vec2>& points, const CamInfo& info, int init_phase_timeout) { - double fx; - info.get_focal_length(fx); + const double fx = info.get_focal_length(); PointOrder order; if (init_phase_timeout > 0 && t.elapsed_ms() > init_phase_timeout) |