diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-05 21:05:30 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-05 21:10:40 +0100 |
commit | f531c3164271f69cb2caef0334b2e24fdd3f1efc (patch) | |
tree | 18093912f5927f55db418b1d8f6f7ad2f5a448e3 /tracker-pt/pt-settings.hpp | |
parent | d98d36c9acc66fb3158f77274189c92b1330fbf6 (diff) |
tracker/pt: clean up grayscale handling. add migration.
The averaging mode is slower than the opencv SIMD implementation
for BT.709. Remove it.
Make it optional to perform hardware grayscaling using the ps3eye sensor
with the open driver. Default to grayscaling using the CPU.
Diffstat (limited to 'tracker-pt/pt-settings.hpp')
-rw-r--r-- | tracker-pt/pt-settings.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-pt/pt-settings.hpp b/tracker-pt/pt-settings.hpp index cce2ba6b..54f13283 100644 --- a/tracker-pt/pt-settings.hpp +++ b/tracker-pt/pt-settings.hpp @@ -8,9 +8,9 @@ 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_bt709 = 2, + pt_color_hardware = 14, pt_color_red_only = 3, - pt_color_average = 5, pt_color_blue_only = 6, pt_color_green_only = 7, pt_color_red_chromakey = 8, @@ -63,7 +63,7 @@ struct pt_settings final : options::opts value<bool> dynamic_pose { b, "dynamic-pose-resolution", false }; value<int> init_phase_timeout { b, "init-phase-timeout", 250 }; value<bool> auto_threshold { b, "automatic-threshold", true }; - value<pt_color_type> blob_color { b, "blob-color", pt_color_natural }; + value<pt_color_type> blob_color { b, "blob-color", pt_color_bt709 }; value<bool> use_mjpeg { b, "use-mjpeg", false }; value<slider_value> threshold_slider { b, "threshold-slider", { 128, 0, 255 } }; |