diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 20:12:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 20:12:57 +0100 |
commit | 28a5f315b368f8ac0bcb49e452fb44de821f22eb (patch) | |
tree | 75569efb281d94cb7c95a42610ee2498d3471f98 /tracker-pt/ftnoir_tracker_pt.h | |
parent | b2cbf1b156f20ebb72bd0ff93d041f0bcb8a4ccf (diff) |
tracker/pt: resize the camera feed, not the preview
This makes the point size text and point crosses not alias due to the
resize.
Due to nice pixel coordinate system, the cross-drawing lambda only needs
minimal changes.
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index fcf74bff..e050f4ad 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -26,6 +26,7 @@ #include <QMutexLocker> #include <QTime> #include <QLayout> +#include <QSize> #include <atomic> #include <memory> #include <vector> @@ -74,9 +75,11 @@ private: settings_pt s; Timer time; - cv::Mat frame; + cv::Mat frame, preview_frame; std::vector<vec2> points; + QSize preview_size; + volatile unsigned point_count; volatile unsigned char commands; volatile bool ever_success; |