1 | initial version |
magic: add a waitkey(30);
after the imshow()
long answer: imshow() just copies a pointer to the image. the waitKey() call is required, because it actually handles the native message queue, which will blit the image to your current window. the argument passed there (in milliseconds) is the time to give back to your os for other processes ( think a 1 cpu celeron system)
2 | No.2 Revision |
magic: add a waitkey(30);
after the imshow()
long answer: imshow() just copies a pointer to the image. the waitKey() call is required, because it actually handles the native message queue, which will blit the image to your current window. the argument passed there (in milliseconds) is the time to give back to your os for other processes ( think a 1 cpu celeron system)
3 | No.3 Revision |
magic: add a
after the waitkey(30);cv::waitkey(30);imshow()cv::imshow()
long answer: imshow() just copies a pointer to the image. the waitKey() call is required, because it actually handles the native message queue, which will blit the image to your current window. the argument passed there (in milliseconds) is the time to give back to your os for other processes ( think a 1 cpu celeron system)