diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-27 18:06:06 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-27 18:06:06 +0200 |
commit | 518becf76bb5313949c76e9fa02d1ada2c25242d (patch) | |
tree | bc99784d389a834f71f3ca5e2f01e24d1450667f /tracker-easy/tracker-easy.h | |
parent | 4039631386ae84abbf476263b28c92d91ac23b81 (diff) |
Easy Tracker: Auto center when user removes her hat.
Diffstat (limited to 'tracker-easy/tracker-easy.h')
-rw-r--r-- | tracker-easy/tracker-easy.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h index 37337087..65b777bf 100644 --- a/tracker-easy/tracker-easy.h +++ b/tracker-easy/tracker-easy.h @@ -101,7 +101,7 @@ namespace EasyTracker Preview iPreview; std::atomic<bool> ever_success = false; - mutable QMutex center_lock, data_lock; + mutable QMutex iProcessLock, iDataLock; // Deadzone int iDeadzoneEdge=0; @@ -144,6 +144,12 @@ namespace EasyTracker cv::Vec3d iBestTranslation; // Best angles cv::Vec3d iBestAngles; + // Time at which we found our last best solution + Timer iBestTime; + // Center translation + cv::Vec3d iCenterTranslation = {0,0,0}; + // Center angles + cv::Vec3d iCenterAngles = { 0,0,0 }; }; } |