diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 08:10:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 08:10:42 +0200 |
commit | 0b6289589656e957c070d46b65ef4e93707324f3 (patch) | |
tree | 0131cca6948035c1281a261fe8666013558e144d /tracker-pt/point_tracker.h | |
parent | 223ff7abf556d7af4b1aeb63a4dc1664fd9d6161 (diff) |
tracker/pt: reduce locking
Diffstat (limited to 'tracker-pt/point_tracker.h')
-rw-r--r-- | tracker-pt/point_tracker.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h index 559f7963..fab0e9ac 100644 --- a/tracker-pt/point_tracker.h +++ b/tracker-pt/point_tracker.h @@ -14,7 +14,6 @@ #include <memory> #include <vector> #include <QObject> -#include <QMutex> class Affine final : private pt_types { @@ -82,7 +81,7 @@ public: // f : (focal length)/(sensor width) // dt : time since last call void track(const std::vector<vec2>& projected_points, const PointModel& model, f focal_length, bool dynamic_pose, int init_phase_timeout); - Affine pose() { QMutexLocker l(&mtx); return X_CM; } + Affine pose() { return X_CM; } vec2 project(const vec3& v_M, PointTracker::f focal_length); private: @@ -104,7 +103,6 @@ private: Affine X_CM; // trafo from model to camera Timer t; - QMutex mtx; bool init_phase; }; |