CreateTrackbar() is awkward in OpenCV 2.4.3

asked 2013-03-15 19:50:29 -0600

Hamid Bazargani gravatar image

Hi, I want to create a track bar in OpenCV 2.4.3. I write a sample code for that as regular, but the output is not like before.

image description

This is my sample code and I'm using QT creator 5 on windows platform.

 int aa=5;
 cv::namedWindow("Cut histogram edges input image",1);
 cv::createTrackbar("histogram edges clipping limit", "Cut histogram edges input image",&aa,50);
 cv::namedWindow("Retina Parvo", 1);

Does anybody know why my output window is like the image above? Thanks

edit retag flag offensive close merge delete