return enablecontours;
}
-void tracking_init() {
+void tracking_init( void (*mouseTracking)(int, int, int, int, void*) ) {
namedWindow("stickletrack_tracking_prefs", CV_WINDOW_KEEPRATIO);
namedWindow("stickletrack_tracking_screen", CV_WINDOW_KEEPRATIO);
createTrackbar("max speed", "stickletrack_tracking_prefs", &Prefs.contours_maxspeed, 100, &trackbarCallbackUpdateNormPrefs, 0);
createTrackbar("max rotation speed", "stickletrack_tracking_prefs", &Prefs.contours_maxrot, 100, &trackbarCallbackUpdateNormPrefs, 0);
+ cvSetMouseCallback("stickletrack_tracking_screen", mouseTracking, 0);
+
mContours = Mat::zeros(Props.height, Props.width, CV_8UC3);
}