diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-03-07 20:54:43 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-03-07 20:54:43 +0100 |
commit | 01b969b452c903deb73a752870298b5f4e6b766a (patch) | |
tree | c766a1f479cfbdb9b7749b7ba06acbf278504821 /tracker-pt | |
parent | 57ab688b4f422a0165795f69182caf4d2430a549 (diff) | |
parent | a066d4c7ee3f5a5b1fefedbee59d05b820e4cf45 (diff) |
Merge branch 'unstable' into trackhattrackhat-1.2p2
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/point_tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |