1 | initial version |
it's probably the bug from here
you want to update your opencv repo to latest master, so you have the proper fix (& rebuild)
in the meantime: convert your image locally to CV_8U:
img.convertTo(img, CV_8U, 255);
imshow("XXX", img);