diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-18 10:43:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-18 10:43:31 +0200 |
commit | 8e022f0d1ad5628c2bf9a97a16b16fd1cff5196c (patch) | |
tree | 24802f1b51f6143184dc22c2f8be1d33ca0ad84d /ftnoir_tracker_pt/point_tracker.h | |
parent | 771e3feef12683b2e756bb638f63934322923620 (diff) |
minor fixes now
Diffstat (limited to 'ftnoir_tracker_pt/point_tracker.h')
-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 39071351..344a05c0 100644 --- a/ftnoir_tracker_pt/point_tracker.h +++ b/ftnoir_tracker_pt/point_tracker.h @@ -70,8 +70,6 @@ public: cv::Matx22f P; - enum Model { Clip = 0, Cap = 1 }; - PointModel(settings_pt& s) { set_model(s); @@ -86,9 +84,11 @@ public: P = 1.0/(s11*s22-s12*s12) * cv::Matx22f(s22, -s12, -s12, s11); } + enum { Cap = 0, Clip = 1 }; + void set_model(settings_pt& s) { - if (s.is_cap) + if (s.model_used == Cap) { const double z = 100, x = 120, y = 60; M01 = cv::Vec3f(-x, -y, -z); |