summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-25 11:47:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-25 13:20:11 +0200
commitd6b5f94670a7c32d9ca21df57c792f7c5fe1aa03 (patch)
treee1742065583c289f1aec9cae0600a33e31e12af8
parentc016dc0cd637a41e226384184f050ae41cd0eee6 (diff)
tracker/pt: fix dynamic pose
Issue: #386
-rw-r--r--tracker-pt/point_tracker.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp
index adea578f..35a78777 100644
--- a/tracker-pt/point_tracker.cpp
+++ b/tracker-pt/point_tracker.cpp
@@ -128,6 +128,7 @@ PointTracker::PointOrder PointTracker::find_correspondences_previous(const std::
point_taken[min_idx] = true;
p.points[i] = points[min_idx];
}
+
return p;
}
@@ -144,10 +145,12 @@ void PointTracker::track(const std::vector<vec2>& points, const PointModel& mode
if (!dynamic_pose || init_phase)
order = find_correspondences(points, model);
else
+ {
order = find_correspondences_previous(points, model, focal_length);
+ }
- const int iters = POSIT(model, order, focal_length);
- init_phase = iters != -1;
+ POSIT(model, order, focal_length);
+ init_phase = false;
t.start();
}