diff options
| author | Stéphane Lenclud <github@lenclud.com> | 2019-04-15 13:03:23 +0200 |
|---|---|---|
| committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-15 13:03:23 +0200 |
| commit | 6bd516592afa7e6c0a4181bd714accad693bd011 (patch) | |
| tree | 0eb64e4569c22e2af67c4d474257db1c9839117c /tracker-easy/tracker-easy.h | |
| parent | 94f04e82a10992ff76e2aa8f7f02bb8983643b52 (diff) | |
Easy Tracker: Improved solver managements of data structures.
Diffstat (limited to 'tracker-easy/tracker-easy.h')
| -rw-r--r-- | tracker-easy/tracker-easy.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h index 8b771c67..00e24811 100644 --- a/tracker-easy/tracker-easy.h +++ b/tracker-easy/tracker-easy.h @@ -37,6 +37,7 @@ namespace EasyTracker struct Tracker : QThread, ITracker { + public: friend class Dialog; explicit Tracker(); @@ -44,10 +45,11 @@ namespace EasyTracker module_status start_tracker(QFrame* parent_window) override; void data(double* data) override; bool center() override; - - int get_n_points(); - + private: + void CreateModelFromSettings(); + void CreateCameraIntrinsicsMatrices(); + void run() override; bool maybe_reopen_camera(); @@ -73,10 +75,17 @@ namespace EasyTracker cv::Mat iMatFrame; Preview iPreview; - std::atomic<unsigned> point_count{ 0 }; std::atomic<bool> ever_success = false; mutable QMutex center_lock, data_lock; + // Vertices defining the model we are tracking + std::vector<cv::Point3f> iModel; + // Bitmap points corresponding to model vertices + std::vector<cv::Point2f> iTrackedPoints; + // Intrinsics camera matrix + cv::Mat iCameraMatrix; + // Intrinsics distortion coefficients as a matrix + cv::Mat iDistCoeffsMatrix; // Translation solutions std::vector<cv::Mat> iTranslations; // Rotation solutions |
