1 | initial version |
there was a shortlived bug in early 4.0, where imshow only could show 8U images, seems you got that.
in the long run: -- update your codebase, it's fixed now.
for now: do your own conversion to CV_8U before calling imshow():
img.convertTo(img, CV_8U, 255);
imshow("lalala", img);