Created
August 11, 2014 09:32
-
-
Save berak/e6053ba95cc539e6d296 to your computer and use it in GitHub Desktop.
trackbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int tv=13; | |
| namedWindow("win1"); | |
| createTrackbar("win1","win1",&tv,100); | |
| Mat img(400,400,CV_8UC3,Scalar(200,80,80)); | |
| while(1) | |
| { | |
| Mat m2 = img.clone(); | |
| // do something with tv: | |
| m2 += Scalar::all(tv); | |
| imshow("win1",m2); | |
| if (waitKey(10)==27) | |
| break; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment