diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-04 19:40:56 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-04 19:40:56 +0100 |
commit | ca76154afd3157bfb1d1f65082cb43a12c234547 (patch) | |
tree | 5204710ecae65e2c8404c7cf398e8c23c713cd6b /ftnoir_tracker_aruco | |
parent | 8a6e59ec2be2a72fd4b009851d3241d663d8289f (diff) |
allow for changing centroid while software's running
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r-- | ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 4 | ||||
-rw-r--r-- | ftnoir_tracker_aruco/ftnoir_tracker_aruco.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index 19413e2f..50496ed7 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -465,6 +465,8 @@ TrackerControls::TrackerControls() void TrackerControls::doOK() { s.b->save(); + if (tracker) + tracker->reload(); this->close(); } @@ -480,6 +482,8 @@ void TrackerControls::doCancel() case QMessageBox::Save: s.b->save(); this->close(); + if (tracker) + tracker->reload(); break; case QMessageBox::Discard: s.b->revert(); diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h index 2ff40c77..91a5ae8e 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h @@ -55,6 +55,7 @@ public: void StartTracker(QFrame* frame); void GetHeadPoseData(double *data); void run(); + void reload() { s.b->reload(); } private: QMutex mtx; volatile bool stop; |