summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-16 08:59:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-16 08:59:21 +0100
commit6cf93c06abad63721bf66f695587a98377b6178d (patch)
treeaf029c638c9a62d6c34bc95a4dc3060c5d2f8921 /tracker-pt/ftnoir_tracker_pt.h
parent88849a1ca4b7c253f7427d361443a496c1b5fe28 (diff)
cv/video-frame, tracker/pt: add hidpi preview support
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;