diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-15 10:25:26 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-18 18:48:42 +0200 |
commit | 91ca9029bef598d459d9ab6bbab788e534cef45f (patch) | |
tree | 7a9bea01e4513cad6cdd7e217467539e2801d42a /tracker-pt | |
parent | d6cec93ae0c277cde38232945079a380980fa163 (diff) |
tracker/pt: adjust after sqrt
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/point_tracker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index 68e0dfea..8e0c28de 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -161,8 +161,8 @@ bool PointTracker::maybe_use_old_point_order(const PointOrder& order, const CamI sum += std::sqrt(tmp.dot(tmp)); } - // CAVEAT don't increase over .3 - static constexpr f max_dist = f(.25); + // CAVEAT don't increase too much, it visibly loses precision + static constexpr f max_dist = f(.35); const bool validp = sum < max_dist; @@ -412,3 +412,4 @@ vec2 PointTracker::project(const vec3& v_M, f focal_length, const Affine& X_CM) vec3 v_C = X_CM * v_M; return vec2(focal_length*v_C[0]/v_C[2], focal_length*v_C[1]/v_C[2]); } + |