diff options
author | Andy Sloane <andy@a1k0n.net> | 2020-06-04 18:48:51 -0700 |
---|---|---|
committer | Andy Sloane <andy@a1k0n.net> | 2020-06-05 07:29:25 -0700 |
commit | c3148df41d2c540acc0a6f72aa0f2088147848ee (patch) | |
tree | f10e2aeccd65e29860823ad3d58d045db5aab6a6 /tracker-pt/pt-settings.hpp | |
parent | 8b14345cf6e06a2938dc7cd8de5e8ca2ec2df039 (diff) |
Add proper color keying to tracker-pt
Instead of just selecting the red/green/blue channels, also subtract the
other channels. This allows for point tracking with just colored spots,
rather than IR LEDs -- green and magenta work particularly well for
this.
This keeps the existing "Red/Green/Blue only" options, but adds
"Red/Green/Blue/Cyan/Yellow/Magenta filter" options, which do a better
job of isolating those colors.
Diffstat (limited to 'tracker-pt/pt-settings.hpp')
-rw-r--r-- | tracker-pt/pt-settings.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tracker-pt/pt-settings.hpp b/tracker-pt/pt-settings.hpp index 723ee08d..1016d17e 100644 --- a/tracker-pt/pt-settings.hpp +++ b/tracker-pt/pt-settings.hpp @@ -13,6 +13,12 @@ enum pt_color_type pt_color_average = 5, pt_color_blue_only = 6, pt_color_green_only = 7, + pt_color_red_filter = 8, + pt_color_green_filter = 9, + pt_color_blue_filter = 10, + pt_color_cyan_filter = 11, + pt_color_yellow_filter = 12, + pt_color_magenta_filter = 13, }; namespace pt_impl { |