Where are we getting the value of this parameter?
问题 In a program in the Learning OpenCV book: void onTrackbarSlide(int pos) { cvSetCaptureProperty(g_capture,CV_CAP_PROP_POS_FRAMES,pos); } And, in another location: if(frames!=0) { cvCreateTrackbar("Position","Example3",&g_slider_position,frames,onTrackbarSlide); } Where are we retrieving the value of pos in the onTrackSlide(int pos) function from? What value will be passed to it from cvCreateTrackbar() ? 回答1: Check the docs and you'll see the function signature is: cvCreateTrackbar(const char*