Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Displaying image results in real time

I want to process a set of images and display them in real time in order to time the frames per second with which the code executes.

    for(int i = 0 ; i  < numOfImages ; i ++ ){

        * DO SOMETHING WITH IMAGE * 

        imshow("Frame", image); 
        waitKey(1);
     }

Is the waitKey(1) the most efficient way to display the succession of frames as fast as possible ? Or is there a better way ?

Thanks!