Ask Your Question
0

namedwindow

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

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
1

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

berak gravatar image

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

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

Question Tools

1 follower

Stats

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

Seen: 1,277 times

Last updated: Dec 05 '16