summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-18 15:54:18 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-24 18:46:12 +0200
commit1a343c785a93fcef9e81854c37d36bba9b973ec8 (patch)
treeed2eb5d04356d5a9976c0e01abd7af68ab855bbd /tracker-easy/tracker-easy.h
parent0a85531e359dcde7aecdd486c6789cbeab93463f (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.h11
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