diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-10 07:49:44 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-10 07:49:44 +0100 |
commit | a9ca349966dde20a8e9030c35c4a79f42c6e642b (patch) | |
tree | 2e75f801a7ede208a839069b45121280f41e8e8a /tracker-pt/ftnoir_tracker_pt.h | |
parent | 9560aa09d5a8adcf2f72d5056821b5a75c0bfc6a (diff) |
tracker/pt: cleanup
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index 35da957b..8274d62e 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -23,6 +23,8 @@ #include <memory> #include <vector> +#include <opencv2/core.hpp> + #include <QCoreApplication> #include <QThread> #include <QMutex> @@ -60,17 +62,10 @@ public slots: protected: void run() override; private: - // thread commands - enum Command : unsigned char - { - ABORT = 1<<0 - }; - void set_command(Command command); - void reset_command(Command command); - QMutex camera_mtx; QMutex data_mtx; - Camera camera; + Camera camera; + PointExtractor point_extractor; PointTracker point_tracker; @@ -83,9 +78,8 @@ private: QSize preview_size; - std::atomic<unsigned> point_count; - std::atomic<unsigned char> commands; - std::atomic<bool> ever_success; + std::atomic<unsigned> point_count = 0; + std::atomic<bool> ever_success = false; static constexpr f rad2deg = f(180/M_PI); //static constexpr float deg2rad = float(M_PI/180); |