From 0b6289589656e957c070d46b65ef4e93707324f3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Jul 2016 08:10:42 +0200 Subject: tracker/pt: reduce locking --- tracker-pt/point_tracker.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tracker-pt/point_tracker.h') 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 #include #include -#include 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& 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; }; -- cgit v1.2.3