From a066d4c7ee3f5a5b1fefedbee59d05b820e4cf45 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 7 Mar 2016 20:54:34 +0100 Subject: Revert "tracker/pt: don't use exact float comparison in POSIT" This reverts commit a40a557caddad5285bd03b79dca5f7a94d1f44c5. --- tracker-pt/point_tracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index 25240635..599ce2d3 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -194,7 +194,7 @@ int PointTracker::POSIT(const PointModel& model, const PointOrder& order_, float float IJ0 = I0.dot(J0); float JJ0 = J0.dot(J0); float rho, theta; - if (std::abs(JJ0 - II0) < 1e-6f) { + if (JJ0 == II0) { rho = std::sqrt(std::abs(2*IJ0)); theta = -PI/4; if (IJ0<0) theta *= -1; -- cgit v1.2.3