summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-27 18:06:06 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-27 18:06:06 +0200
commit518becf76bb5313949c76e9fa02d1ada2c25242d (patch)
treebc99784d389a834f71f3ca5e2f01e24d1450667f /tracker-easy/tracker-easy.h
parent4039631386ae84abbf476263b28c92d91ac23b81 (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.h8
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 };
};
}