Ask Your Question

Revision history [back]

Ok I think you have past an unicode char in imshow("display", img); Just before d of display

Ok I think you have past an unicode char in imshow("display", img); img); or namedWindow("display", WINDOW_AUTOSIZE); Just before d of displaydisplay which is invisible

Ok I think you have past an unicode char in imshow("display", img); or namedWindow("display", WINDOW_AUTOSIZE); Just before d of display which is invisible

Finally I think this code is better :

namedWindow(fileName, WINDOW_AUTOSIZE);
imshow(fileName, img);