Ask Your Question


asked 2016-12-05 11:17:54 -0500

Vaclav gravatar image

Is "namedwindow" preferred function to build window in OpenCV?
I am interested in just base window as GUI - with title, max / min , close "buttons". The actual content of window is not important.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-05 11:35:33 -0500

berak gravatar image

updated 2016-12-05 11:36:13 -0500

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)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-12-05 11:17:54 -0500

Seen: 586 times

Last updated: Dec 05 '16