diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-14 23:29:53 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-14 23:29:53 +0100 |
commit | 2294a2866cf6ee48b8f4557c0fd47ad2fe112a4a (patch) | |
tree | 28bcc5a015f7a702ef22221c70aec0f958d20125 /ftnoir_tracker_pt/point_tracker.cpp | |
parent | 800f5872ba8d67284016e3b7b61b1c955fa9b1eb (diff) |
pt: use settings framework
Issue: #96
Model values are recomputed every frame. This shouldn't matter, as
there's very little to compute.
With this change, sliders and other options are applied immediately, and
the "Apply" button is gone.
Diffstat (limited to 'ftnoir_tracker_pt/point_tracker.cpp')
-rw-r--r-- | ftnoir_tracker_pt/point_tracker.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ftnoir_tracker_pt/point_tracker.cpp b/ftnoir_tracker_pt/point_tracker.cpp index 9f04af30..3fdc60ef 100644 --- a/ftnoir_tracker_pt/point_tracker.cpp +++ b/ftnoir_tracker_pt/point_tracker.cpp @@ -33,26 +33,6 @@ static void set_row(Matx33f& m, int i, const Vec3f& v) m(i,2) = v[2]; } -PointModel::PointModel() : - M01 { 0, 0, 0 }, - M02 { 0, 0, 0 } -{ -} - -PointModel::PointModel(Vec3f M01, Vec3f M02) - : M01(M01), M02(M02) -{ - // calculate u - u = M01.cross(M02); - u /= norm(u); - - // calculate projection matrix on M01,M02 plane - float s11 = M01.dot(M01); - float s12 = M01.dot(M02); - float s22 = M02.dot(M02); - P = 1.0/(s11*s22-s12*s12) * Matx22f(s22, -s12, -s12, s11); -} - #ifdef OPENTRACK_API static bool d_vals_sort(const pair<float,int> a, const pair<float,int> b) { |