I would like to remove the 1-pixel “gutter” that sits between the displayed image and the window’s border in win32 imshow
. the function icvCalcWindowRect
could either get its gutter constant set to 0 or the entire calculation could be simplified (my preference).
opencv/modules/highgui/src/window_w32.cpp
Lines 1119 to 1142
in
941a979
reason: when you send the window into fullscreen, you’d expect the image area to be the precise resolution of your screen, right? with that gutter, it’s not. it’s smaller by two pixels (window decoration disappears, the gutter stays). a precisely screen-sized image shown will be slightly off, which either causes rows and columns of the picture to disappear (GDI: nearest neighbor) or the whole picture gets resampled and turned into mush (OpenGL: bilinear). the gutter also has no function that I can see.
import numpy as np
import cv2 as cv
im = np.eye(200)
cv.imshow("gutter?", im)
cv.waitKey(-1)
my question: would you like the pull request to be against 3.4 or master? I ask because last time I had a pull request against the wrong branch, having to rebase overwhelmed me and I’d like to avoid repeated embarrassment.
have no objections to accept the patch