From a24e7bdd9745918f7d5fdc852ce65233b41363f9 Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Sun, 21 Apr 2019 13:15:57 +0200 Subject: Easy Tracker: PNP solver now a settings option. --- tracker-easy/settings.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'tracker-easy/settings.h') diff --git a/tracker-easy/settings.h b/tracker-easy/settings.h index 53b800526..4d043e6ae 100644 --- a/tracker-easy/settings.h +++ b/tracker-easy/settings.h @@ -1,19 +1,10 @@ #pragma once #include "options/options.hpp" +#include #include -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 debug{ b, "debug", false }; value auto_threshold{ b, "automatic-threshold", true }; - value blob_color{ b, "blob-color", pt_color_natural }; + value PnpSolver{ b, "pnp-solver", cv::SOLVEPNP_P3P }; value threshold_slider{ b, "threshold-slider", { 128, 0, 255 } }; -- cgit v1.2.3