Hello,
How do I pass a variable using a trackbar ? I do not want it to be a global variable like http://docs.opencv.org/2.4/doc/tutorials/highgui/trackbar/trackbar.html Id like it to be something like below
createTrackbar( TrackbarName, "Linear Blend", &alpha_slider, alpha_slider_max, on_trackbar(alpha_slider) );
void on_trackbar(int alpha_slider) {
cout << alpha_slider
}