summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h
index c9c15bc7..0b2a8578 100644
--- a/tracker-pt/ftnoir_tracker_pt.h
+++ b/tracker-pt/ftnoir_tracker_pt.h
@@ -40,8 +40,11 @@ class Tracker_PT : public QThread, public ITracker
friend class ::TrackerDialog_PT;
+ template<typename t>
+ using pointer = typename pt_runtime_traits::pointer<t>;
+
public:
- Tracker_PT(const pt_runtime_traits& pt_runtime_traits);
+ Tracker_PT(pointer<pt_runtime_traits> pt_runtime_traits);
~Tracker_PT() override;
module_status start_tracker(QFrame* parent_window) override;
void data(double* data) override;
@@ -56,12 +59,11 @@ public slots:
protected:
void run() override;
private:
+ pointer<pt_runtime_traits> traits;
+
QMutex camera_mtx;
QMutex data_mtx;
- template<typename t>
- using pointer = typename pt_runtime_traits::pointer<t>;
-
PointTracker point_tracker;
pt_settings s;
@@ -69,6 +71,8 @@ private:
std::unique_ptr<QLayout> layout;
std::vector<vec2> points;
+ int preview_width = 320, preview_height = 240;
+
pointer<pt_point_extractor> point_extractor;
pointer<pt_camera> camera;
pointer<cv_video_widget> video_widget;