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/settings.h | |
parent | 028f2faa5f48e4beb77427ddd708f0372e0de97f (diff) |
Easy Tracker: PNP solver now a settings option.
Diffstat (limited to 'tracker-easy/settings.h')
-rw-r--r-- | tracker-easy/settings.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tracker-easy/settings.h b/tracker-easy/settings.h index 53b80052..4d043e6a 100644 --- a/tracker-easy/settings.h +++ b/tracker-easy/settings.h @@ -1,19 +1,10 @@ #pragma once #include "options/options.hpp" +#include <opencv2/calib3d.hpp> #include <QString> -enum pt_color_type -{ - // explicit values, gotta preserve the numbering in .ini - // don't reuse when removing some of the modes - pt_color_natural = 2, - pt_color_red_only = 3, - pt_color_average = 5, - pt_color_blue_only = 6, - pt_color_green_only = 7, -}; namespace EasyTracker { @@ -58,7 +49,7 @@ namespace EasyTracker { value<bool> debug{ b, "debug", false }; value<bool> auto_threshold{ b, "automatic-threshold", true }; - value<pt_color_type> blob_color{ b, "blob-color", pt_color_natural }; + value<int> PnpSolver{ b, "pnp-solver", cv::SOLVEPNP_P3P }; value<slider_value> threshold_slider{ b, "threshold-slider", { 128, 0, 255 } }; |