summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-22 07:58:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-22 07:58:42 +0200
commitb253d56527365a729c0249918f6c9477893a717e (patch)
treeee10ce89c268c0566005d25fa4d49ba5cc51da41 /tracker-pt/point_tracker.cpp
parent4e03f244450cbfd8a5a1cf429515ce0194f66262 (diff)
tracker/pt: return focal length directly
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r--tracker-pt/point_tracker.cpp5
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)