diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-11 05:40:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-11 05:40:39 +0200 |
commit | 549e885c1bfb3768d0c203ddf6f117e57dae8b4e (patch) | |
tree | f6e1005cc58def679bbd6fb926a675c35353540d | |
parent | 06d0374d896e79a510b2b0b56a3a75601e5201d0 (diff) |
pt: fix coordinate order
Sponsored-by: TrackHat
-rw-r--r-- | ftnoir_tracker_pt/point_tracker.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_tracker_pt/point_tracker.h b/ftnoir_tracker_pt/point_tracker.h index 1474ad40..df938237 100644 --- a/ftnoir_tracker_pt/point_tracker.h +++ b/ftnoir_tracker_pt/point_tracker.h @@ -80,16 +80,16 @@ public: P = 1.0/(s11*s22-s12*s12) * cv::Matx22f(s22, -s12, -s12, s11); } - enum { Cap = 0, ClipRight = 1, ClipLeft = 2 }; - void set_model(settings_pt& s) { + enum { Cap = 0, ClipRight = 1, ClipLeft = 2 }; + switch (s.model_used) { default: case Cap: { - const double z = 100, x = 120, y = 60; + const double x = 60, y = 100, z = 120; M01 = cv::Vec3f(-x, -y, -z); M02 = cv::Vec3f(x, -y, -z); break; |