Ask Your Question

Revision history [back]

CreateTrackbar() is awkward in OpenCV 2.4.3

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