Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You should call waitKey with some delay after imshow:

imshow("flow", cflow);
waitKey(10);

You should call waitKey with some delay after imshow:

imshow("flow", cflow);
waitKey(10);

This function fetch and handle window events including PAINT event.