Reputation: 13
I would like some tips on displaying my image on the maximum possible size using imshow. I'm being able to show it after binarization, but then, when I use findContours, it displays the image cut in the size of the screen.
Upvotes: 0
Views: 242
Reputation: 150825
It's a case for namedWindow
, details here. Basically you should change the default window option before you display an image:
Mat a_very_big_image = imread("path_to_a_very_big_image");
// WINDOW_NORMAL allows window to be resized
namedWindow("auto resize", WINDOW_NORMAL);
imshow("auto resize", a_very_big_image);
waitKey(0);
Upvotes: 2