Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you only need to call namedWindow() if you need certain flags, or try to add trackbars.

in any other case, imshow() will just create a window with the default flags (WINDOW_AUTOSIZE)

(and you can omit the namedWindow() call entirely)

you only need to call namedWindow() if you need certain flags, or try to add trackbars.

in any other case, imshow() will just create a window on-the-fly with the default flags (WINDOW_AUTOSIZE)

(and you can omit the namedWindow() call entirely)