diff options
| author | Stéphane Lenclud <github@lenclud.com> | 2019-04-18 15:54:18 +0200 |
|---|---|---|
| committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-18 15:54:18 +0200 |
| commit | bfe47f03615b4e5a28df91547d804c5819d981f2 (patch) | |
| tree | 98d9c6a9c4ab9bcd926a107b1916b030f79450cd /tracker-easy/tracker-easy.h | |
| parent | 2fdb40f65ec1886872b953c956133b7095dabf99 (diff) | |
Easy Tracker: built-in Kalman filter.
It's hard to tell if it brings much though.
Diffstat (limited to 'tracker-easy/tracker-easy.h')
| -rw-r--r-- | tracker-easy/tracker-easy.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h index a8c8e6be..a84d725e 100644 --- a/tracker-easy/tracker-easy.h +++ b/tracker-easy/tracker-easy.h @@ -1,5 +1,4 @@ -/* Copyright (c) 2012 Patrick Ruoff - * Copyright (c) 2014-2016 Stanislaw Halik <sthalik@misaki.pl> +/* Copyright (c) 2019 Stephane Lenclud * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -14,15 +13,18 @@ #include "video/camera.hpp" #include "compat/timer.hpp" + #include "preview.h" #include "settings.h" #include "point-extractor.h" +#include "kalman-filter-pose.h" #include <atomic> #include <memory> #include <vector> #include <opencv2/core.hpp> +#include <opencv2/video/tracking.hpp> #include <QThread> #include <QMutex> @@ -87,7 +89,7 @@ namespace EasyTracker std::atomic<bool> ever_success = false; mutable QMutex center_lock, data_lock; - // + // Statistics Timer iTimer; Timer iFpsTimer; int iFrameCount = 0; @@ -95,6 +97,9 @@ namespace EasyTracker int iFps = 0; int iSkippedFps = 0; + // + KalmanFilterPose iKf; + // Vertices defining the model we are tracking std::vector<cv::Point3f> iModel; // Bitmap points corresponding to model vertices |
