imshow without namedWindow showing image

asked 2013-04-08 05:06:17 -0500

shani gravatar image

i thought imshow not supposed to show image if the window don't exist. but apparently it is. i don't understand if it is a bug of i did not understand correctly.

i am tring to not open a new window if the user close it. i thought i open the window at init and at other part i just use imshow and that way if the user close the window it won't appear again. but because imshow show the image this is not working. how can i achieve this goal?

edit retag flag offensive close merge delete

Comments

1

It's not a bug. imshow calls namedWindow if window doesn't exists.

Vladislav Vinogradov gravatar imageVladislav Vinogradov ( 2013-04-08 05:23:24 -0500 )edit

So simply said, don't use imshow if you do not want to visualize something :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-08 05:38:46 -0500 )edit