summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-03 07:10:12 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-03 07:10:12 +0100
commitac36fa53e970bf79d68499b52433d33ed994c4c5 (patch)
treeb98ad2b555c8b16ab108ff77be6c1ea063606e0e /tracker-pt/ftnoir_tracker_pt.h
parent1aeb193a0277e2f1319dd1e935f8111cf01d301c (diff)
tracker/{aruco,pt}: use RAII for QObject
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h
index 020694ae..66928655 100644
--- a/tracker-pt/ftnoir_tracker_pt.h
+++ b/tracker-pt/ftnoir_tracker_pt.h
@@ -18,12 +18,14 @@
#include "point_tracker.h"
#include "compat/timer.hpp"
#include "cv/video-widget.hpp"
+#include "compat/util.hpp"
#include <QCoreApplication>
#include <QThread>
#include <QMutex>
#include <QMutexLocker>
#include <QTime>
+#include <QLayout>
#include <atomic>
#include <memory>
#include <vector>
@@ -65,12 +67,12 @@ private:
QMutex camera_mtx;
QMutex data_mtx;
- CVCamera camera;
+ Camera camera;
PointExtractor point_extractor;
PointTracker point_tracker;
- cv_video_widget* video_widget;
- QFrame* video_frame;
+ qshared<cv_video_widget> video_widget;
+ qshared<QLayout> layout;
settings_pt s;
Timer time;