diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-20 18:59:59 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | 028f2faa5f48e4beb77427ddd708f0372e0de97f (patch) | |
tree | 9663139004a6a64c37e3c233963c0e41482f3296 /tracker-easy/tracker-easy.h | |
parent | 088344f1bde14a24f90852316d01e6f1826da034 (diff) |
Easy Tracker: Deadzone implementation to minimize noise.
Added Deadzone pixels size to settings.
Clip and Custom model settings tabs disabled.
Diffstat (limited to 'tracker-easy/tracker-easy.h')
-rw-r--r-- | tracker-easy/tracker-easy.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h index 05fdb94a..bbafcefa 100644 --- a/tracker-easy/tracker-easy.h +++ b/tracker-easy/tracker-easy.h @@ -61,13 +61,14 @@ namespace EasyTracker void CreateModelFromSettings(); void CreateCameraIntrinsicsMatrices(); void ProcessFrame(); - + // bool maybe_reopen_camera(); void set_fov(int value); void SetFps(int aFps); void DoSetFps(int aFps); + void UpdateDeadzones(int aHalfEdgeSize); QMutex camera_mtx; QThread iThread; @@ -93,6 +94,10 @@ namespace EasyTracker std::atomic<bool> ever_success = false; mutable QMutex center_lock, data_lock; + // Deadzone + int iDeadzoneEdge=0; + int iDeadzoneHalfEdge=0; + // Statistics Timer iTimer; Timer iFpsTimer; @@ -108,6 +113,9 @@ namespace EasyTracker std::vector<cv::Point3f> iModel; // Bitmap points corresponding to model vertices std::vector<cv::Point2f> iTrackedPoints; + + std::vector<cv::Rect> iTrackedRects; + // Intrinsics camera matrix cv::Mat iCameraMatrix; // Intrinsics distortion coefficients as a matrix |