diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-21 13:30:55 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-21 13:30:55 +0100 |
commit | 0812312b232eb1ed85128d1ae141a4967964fa55 (patch) | |
tree | a61940504e5bd616786d49a4e3bd62c45876f253 /ftnoir_tracker_pt | |
parent | d42a9b7051051340c655417b157191d6a927044e (diff) |
fix d_order logic
Issue: #107
The d value was computed using points from camera, not model
coordinates.
Diffstat (limited to 'ftnoir_tracker_pt')
-rw-r--r-- | ftnoir_tracker_pt/point_tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_pt/point_tracker.cpp b/ftnoir_tracker_pt/point_tracker.cpp index eeb689ce..0f996316 100644 --- a/ftnoir_tracker_pt/point_tracker.cpp +++ b/ftnoir_tracker_pt/point_tracker.cpp @@ -79,7 +79,7 @@ PointTracker::PointOrder PointTracker::find_correspondences(const std::vector<cv // sort points int point_d_order[PointModel::N_POINTS]; int model_d_order[PointModel::N_POINTS]; - cv::Vec2f d(points[0][0]-points[1][0], points[0][1]-points[1][1]); + cv::Vec2f d(model.M01[0]-model.M02[0], model.M01[1]-model.M02[1]); model.get_d_order(points, point_d_order, d); // calculate d and d_order for simple freetrack-like point correspondence model.get_d_order(std::vector<cv::Vec2f> { |