diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-07-11 17:23:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-07-11 17:23:20 +0200 |
commit | 4dc41d3d8642d90d52b667dd05b4f99735f83a37 (patch) | |
tree | c146ff0fd20918bf87ab841fed7cdffde4393655 /ftnoir_tracker_aruco/ftnoir_tracker_aruco.h | |
parent | 5f9494fa021582f725fed487162cdb043c607a50 (diff) |
integrate PT axis of rotation estimation into AR
Diffstat (limited to 'ftnoir_tracker_aruco/ftnoir_tracker_aruco.h')
-rw-r--r-- | ftnoir_tracker_aruco/ftnoir_tracker_aruco.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h index 4cab84b5..f1fcc326 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h @@ -16,9 +16,11 @@ #include <QMutex> #include <QHBoxLayout> #include <QDialog> +#include <QTimer> #include <opencv2/opencv.hpp> #include <opencv/highgui.h> #include "facetracknoir/options.h" +#include "ftnoir_tracker_aruco/trans_calib.h" using namespace options; struct settings { @@ -58,6 +60,7 @@ public: void GetHeadPoseData(double *data); void run(); void reload() { s.b->reload(); } + void getRT(cv::Matx33f& r, cv::Vec3f& t); private: QMutex mtx; volatile bool stop; @@ -67,6 +70,8 @@ private: double pose[6]; cv::Mat frame; cv::VideoCapture camera; + cv::Matx33f r; + cv::Vec3f t; }; // Widget that has controls for FTNoIR protocol client-settings. @@ -85,9 +90,15 @@ private: Ui::Form ui; Tracker* tracker; settings s; + TranslationCalibrator calibrator; + bool calibrating; + QTimer calib_timer; private slots: void doOK(); void doCancel(); + void toggleCalibrate(); + void cleanupCalib(); + void update_tracker_calibration(); }; #endif |