Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When is an OpenCV imshow() window destroyed? (C++)

Tags:

opencv

Can someone help me with the behavior of windows created with the imshow() function? I'm replacing a call to the older cvNamedWindow(), which required a window to be explicitly destroyed and cleaned up when you're done with it. imshow, on the other hand, seems to require no cleanup and to close the window after a user keypress. Do I have any control over that?

like image 371
user2055867 Avatar asked Feb 28 '13 19:02

user2055867


1 Answers

You can use namedWindow in Opencv 2.x

See this link: namedWindow

To destroy an window, you can use destroyWindow("windowname");

like image 72
Barshan Das Avatar answered Sep 21 '22 04:09

Barshan Das