diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-21 13:15:57 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | a24e7bdd9745918f7d5fdc852ce65233b41363f9 (patch) | |
tree | 1ac100b2b0a835166c2d59e41b0c280f7c791add /tracker-easy/tracker-easy-dialog.cpp | |
parent | 028f2faa5f48e4beb77427ddd708f0372e0de97f (diff) |
Easy Tracker: PNP solver now a settings option.
Diffstat (limited to 'tracker-easy/tracker-easy-dialog.cpp')
-rw-r--r-- | tracker-easy/tracker-easy-dialog.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tracker-easy/tracker-easy-dialog.cpp b/tracker-easy/tracker-easy-dialog.cpp index e3b72e38..36c5d99d 100644 --- a/tracker-easy/tracker-easy-dialog.cpp +++ b/tracker-easy/tracker-easy-dialog.cpp @@ -11,6 +11,7 @@ #include "video/camera.hpp" #include <opencv2/core.hpp> +#include <opencv2/calib3d.hpp> #include <QString> #include <QtGlobal> @@ -95,18 +96,11 @@ namespace EasyTracker connect(this, &Dialog::poll_tracker_info, this, &Dialog::poll_tracker_info_impl, Qt::DirectConnection); - constexpr pt_color_type color_types[] = { - pt_color_average, - pt_color_natural, - pt_color_red_only, - pt_color_green_only, - pt_color_blue_only, - }; - for (unsigned k = 0; k < std::size(color_types); k++) - ui.blob_color->setItemData(k, int(color_types[k])); + for (unsigned k = 0; k < cv::SOLVEPNP_MAX_COUNT; k++) + ui.comboBoxSolvers->setItemData(k, k); - tie_setting(s.blob_color, ui.blob_color); + tie_setting(s.PnpSolver, ui.comboBoxSolvers); tie_setting(s.threshold_slider, ui.threshold_value_display, [this](const slider_value& val) { return threshold_display_text(int(val)); |