From c3148df41d2c540acc0a6f72aa0f2088147848ee Mon Sep 17 00:00:00 2001 From: Andy Sloane Date: Thu, 4 Jun 2020 18:48:51 -0700 Subject: 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. --- tracker-pt/ftnoir_tracker_pt_dialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tracker-pt/ftnoir_tracker_pt_dialog.cpp') diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp index edf689a9..6c284381 100644 --- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp +++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp @@ -100,6 +100,12 @@ TrackerDialog_PT::TrackerDialog_PT(const QString& module_name) : pt_color_red_only, pt_color_green_only, pt_color_blue_only, + pt_color_red_filter, + pt_color_green_filter, + pt_color_blue_filter, + pt_color_cyan_filter, + pt_color_yellow_filter, + pt_color_magenta_filter, }; for (unsigned k = 0; k < std::size(color_types); k++) -- cgit v1.2.3