Skip to content

Instantly share code, notes, and snippets.

@berak
Created August 11, 2014 09:32
Show Gist options
  • Select an option

  • Save berak/e6053ba95cc539e6d296 to your computer and use it in GitHub Desktop.

Select an option

Save berak/e6053ba95cc539e6d296 to your computer and use it in GitHub Desktop.
trackbar
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