Ask Your Question

Revision history [back]

The following answers my predictament exactly.

IplImage* img = cvLoadImage( argv[1] );
cv::namedWindow( "Test3-Example1", CV_WINDOW_AUTOSIZE );
cvShowImage( "Test3-Example1", img );
cv::waitKey(0);
cvReleaseImage( &img );
cv::destroyWindow( "Test3-Example1" );
return 0;

LoadImage, ShowImage and ReleaseImage needed to have pre-appended "cv" with the third character capitalised.

I found this out by just trying different combinations of function calls from the CV library headers.