Issue about CreateTrackbar
Creates a trackbar and attaches it to the specified window Usage:
int cvCreateTrackbar(trackbar name, window name, int* value, int count, callback on change );
value: Pointer to an integer variable, whose value will reflect the position of the slider. Upon creation, the slider position is defined by this variable. The problem is when the callback function is invoked, the 'value' will not change.
The solution is call GetTrackbarPos in the callback Func..
Example: