diff options
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 |