Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

waitKey() is needed to show an image (it triggers the window update, while imshow() only copies a pointer) , so you cannot replace it with sleep() or the like

waitKey() is needed to show an image (it triggers the window update, while imshow() only copies a pointer) , so you cannot replace it with sleep() or the like

and would like to start with three threads

however, all your gui calls (imshow, waitKey, etc) have to remain on the main thread