summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-03 00:10:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:20 +0100
commit03e460d845c4b0e3eca4452ce66a76615d500954 (patch)
tree08e9926b93ef4dde93a60d3be969668e23d27a25 /tracker-pt
parent29e619bcda81386fecaf97049718cebafbfacd2a (diff)
tracker/pt: disable faulty max distance logic
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/point_tracker.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp
index 68e8c286..5de1ae33 100644
--- a/tracker-pt/point_tracker.cpp
+++ b/tracker-pt/point_tracker.cpp
@@ -96,9 +96,6 @@ PointTracker::PointOrder PointTracker::find_correspondences_previous(const vec2*
p[1] = project(model.M01, fx);
p[2] = project(model.M02, fx);
- const int diagonal = int(std::sqrt(f(info.res_x*info.res_x + info.res_y*info.res_y)));
- constexpr int div = 80;
- const int max_dist = diagonal / div; // 10 pixels for 640x480
constexpr unsigned sz = PointModel::N_POINTS;
// set correspondences by minimum distance to projected model point
@@ -123,7 +120,7 @@ PointTracker::PointOrder PointTracker::find_correspondences_previous(const vec2*
}
// if one point is closest to more than one model point, fallback
- if (min_sdist > max_dist || point_taken[min_idx])
+ if (point_taken[min_idx])
{
init_phase = true;
return find_correspondences(points, model);