summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-28 00:03:24 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-28 00:03:24 +0200
commit3e56f47a9cef709d4a099a0ac6ff43e361fe4a43 (patch)
treea8968cb73e7568902c83bb2275982ac23261a2f7 /tracker-easy/tracker-easy.h
parent518becf76bb5313949c76e9fa02d1ada2c25242d (diff)
Easy Tracker: UI rework for custom model with three, four or five vertices.
More settings can be changed live without have to restart the tracker. Fixing a few deadlock issues.
Diffstat (limited to 'tracker-easy/tracker-easy.h')
-rw-r--r--tracker-easy/tracker-easy.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h
index 65b777bf..f36ea598 100644
--- a/tracker-easy/tracker-easy.h
+++ b/tracker-easy/tracker-easy.h
@@ -38,7 +38,7 @@ namespace EasyTracker
{
Clip,
Cap,
- FourPoints
+ Custom
};
static const QString KModuleName = "tracker-easy";
@@ -66,7 +66,7 @@ namespace EasyTracker
private:
- void CreateModelFromSettings();
+ void UpdateModel();
void CreateCameraIntrinsicsMatrices();
void ProcessFrame();
@@ -76,8 +76,7 @@ namespace EasyTracker
void set_fov(int value);
void SetFps(int aFps);
void DoSetFps(int aFps);
- void UpdateDeadzones(int aHalfEdgeSize);
- void UpdateSolver(int aSolver);
+ void UpdateSettings();
QMutex camera_mtx;
QThread iThread;
@@ -103,12 +102,14 @@ namespace EasyTracker
std::atomic<bool> ever_success = false;
mutable QMutex iProcessLock, iDataLock;
+ //// Copy the settings need by our thread to avoid dead locks
// Deadzone
int iDeadzoneEdge=0;
int iDeadzoneHalfEdge=0;
-
// Solver
int iSolver = cv::SOLVEPNP_P3P;
+ bool iDebug = false;
+ ////
// Statistics
Timer iTimer;