diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-11 18:10:42 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-12 12:04:27 +0100 |
commit | e5d2902e11ae6ea2e26e0caa6588384225e018f6 (patch) | |
tree | 6b9660910daf250290c339780d5b2ef062646130 /tracker-pt/point_tracker.cpp | |
parent | 049044f181414991a103ace961214c78171c284d (diff) |
tracker/pt: refactor
- separate .{cpp,hpp} for few classes
- don't include namespaces globally; harmless but looks bad
anyway
- class with all public members to struct
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r-- | tracker-pt/point_tracker.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index 990ec512..7c0367d0 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -6,12 +6,10 @@ */ #include "point_tracker.h" - -#include "ftnoir_tracker_pt_settings.h" -using namespace pt_types; - #include "compat/nan.hpp" +using namespace types; + #include <vector> #include <algorithm> #include <cmath> @@ -353,3 +351,4 @@ vec2 PointTracker::project(const vec3& v_M, f focal_length, const Affine& X_CM) vec3 v_C = X_CM * v_M; return vec2(focal_length*v_C[0]/v_C[2], focal_length*v_C[1]/v_C[2]); } + |