![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 IplImage* img = cvLoadImage( argv[1] ); 2 cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE ); 3 cvShowImage("Example1", img ); 4 cvWaitKey(0); 5 cvReleaseImage( &img ); 6 cvDestroyWindow("Example1");
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 #pragma comment(lib, "opencv_highgui244d.lib") 2 #pragma comment(lib, "opencv_core244d.lib") 3 #pragma comment(lib, "opencv_ml244d.lib") 4 #pragma comment(lib, "opencv_calib3d244d.lib")