diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-22 14:23:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-22 14:25:28 +0200 |
commit | 76bd17e3c095e2379daf893427cb3d9d277a064e (patch) | |
tree | 44451ebce5c6988597ec098f9a4cdd502b7c0c8d /tracker-pt/ftnoir_tracker_pt_settings.h | |
parent | 0a537e04b9b5fb38ea21cc71af78698afb98ff88 (diff) |
tracker/pt: add color extraction modes
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_settings.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt_settings.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_settings.h b/tracker-pt/ftnoir_tracker_pt_settings.h index 79c1e103..265d382e 100644 --- a/tracker-pt/ftnoir_tracker_pt_settings.h +++ b/tracker-pt/ftnoir_tracker_pt_settings.h @@ -11,6 +11,15 @@ #include "options/options.hpp" using namespace options; +enum pt_color_type +{ + // explicit values, gotta preserve the numbering in .ini + // don't reuse when removing some of the modes + pt_color_normal = 2, + pt_color_red_only = 3, + pt_color_floppy_filter = 4, +}; + struct settings_pt : opts { value<QString> camera_name; @@ -33,6 +42,7 @@ struct settings_pt : opts value<bool> dynamic_pose; value<int> init_phase_timeout; value<bool> auto_threshold; + value<pt_color_type> blob_color; settings_pt() : opts("tracker-pt"), @@ -63,6 +73,7 @@ struct settings_pt : opts fov(b, "camera-fov", 56), dynamic_pose(b, "dynamic-pose-resolution", true), init_phase_timeout(b, "init-phase-timeout", 250), - auto_threshold(b, "automatic-threshold", true) + auto_threshold(b, "automatic-threshold", true), + blob_color(b, "blob-color", pt_color_normal) {} }; |