- namedWindow("background", CV_WINDOW_KEEPRATIO);
- namedWindow("foregroundmask", CV_WINDOW_KEEPRATIO);
- namedWindow("colormask", CV_WINDOW_KEEPRATIO);
- namedWindow("scissorsmask", CV_WINDOW_KEEPRATIO);
-
- createTrackbar("Decay", "background", &Prefs.halfdecay, 100, &trackbarCallbackUpdateNormPrefs, 0);
- createTrackbar("Threshold", "foregroundmask", &Prefs.forethreshold, 255, &trackbarCallbackUpdateNormPrefs, 0);
-
- createTrackbar("min H", "colormask", &Prefs.mincolor[0], 255, NULL, 0);
- createTrackbar("min S", "colormask", &Prefs.mincolor[1], 255, NULL, 0);
- createTrackbar("min V", "colormask", &Prefs.mincolor[2], 255, NULL, 0);
- createTrackbar("max H", "colormask", &Prefs.maxcolor[0], 255, NULL, 0);
- createTrackbar("max S", "colormask", &Prefs.maxcolor[1], 255, NULL, 0);
- createTrackbar("max V", "colormask", &Prefs.maxcolor[2], 255, NULL, 0);
-
- cvSetMouseCallback("scissorsmask", mouseScissors, 0);
+ namedWindow("stickletrack_masking_background", CV_WINDOW_KEEPRATIO);
+ namedWindow("stickletrack_masking_backgroundmask", CV_WINDOW_KEEPRATIO);
+ namedWindow("stickletrack_masking_colormask", CV_WINDOW_KEEPRATIO);
+ namedWindow("stickletrack_masking_scissorsmask", CV_WINDOW_KEEPRATIO);
+
+ createTrackbar("Decay", "stickletrack_masking_background", &Prefs.halfdecay, 100, &trackbarCallbackUpdateNormPrefs, 0);
+ createTrackbar("Threshold", "stickletrack_masking_backgroundmask", &Prefs.forethreshold, 255, &trackbarCallbackUpdateNormPrefs, 0);
+
+ createTrackbar("min H", "stickletrack_masking_colormask", &Prefs.mincolor[0], 255, NULL, 0);
+ createTrackbar("min S", "stickletrack_masking_colormask", &Prefs.mincolor[1], 255, NULL, 0);
+ createTrackbar("min V", "stickletrack_masking_colormask", &Prefs.mincolor[2], 255, NULL, 0);
+ createTrackbar("max H", "stickletrack_masking_colormask", &Prefs.maxcolor[0], 255, NULL, 0);
+ createTrackbar("max S", "stickletrack_masking_colormask", &Prefs.maxcolor[1], 255, NULL, 0);
+ createTrackbar("max V", "stickletrack_masking_colormask", &Prefs.maxcolor[2], 255, NULL, 0);
+
+ cvSetMouseCallback("stickletrack_masking_scissorsmask", mouseScissors, 0);