Removed cvWaitKey(), cvNamedWindow, and other instructions by their C++ correspondance