summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:35:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:35:49 +0200
commitd1e7df336ce101a0fd9b05e4d3b2b8d49f6caa61 (patch)
tree60772cb59866b7cb9a4d427bfd9dfa22e1915798 /tracker-pt/ftnoir_tracker_pt_dialog.cpp
parentacb60d2264fb203898b16f01952cdb3498ffac20 (diff)
tracker/pt: grayscaling modes work
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_dialog.cpp')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
index 4094f4dc..9f0832ef 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
@@ -87,6 +87,8 @@ TrackerDialog_PT::TrackerDialog_PT()
pt_color_natural,
pt_color_floppy_filter,
pt_color_red_only,
+ pt_color_blue_only,
+ pt_color_smoothed_average,
};
for (unsigned k = 0; k < std::size(color_types); k++)
@@ -111,7 +113,10 @@ QString TrackerDialog_PT::threshold_display_text(int threshold_value)
else
{
CamInfo info;
- int w = 640, h = 480;
+ int w = s.cam_res_x, h = s.cam_res_y;
+
+ if (w * h <= 0)
+ w = 640, h = 480;
if (tracker && tracker->get_cam_info(&info) && info.res_x * info.res_y != 0)
w = info.res_x, h = info.res_y;