opencv 实现加载并显示图像

学习 opencv 写的第一个程序,特此纪念!

#include <cv.h>#include <highgui.h>int main(){IplImage* pImg;if ((pImg = cvLoadImage("test.bmp", 1)) != 0){cvNamedWindow ("Image", 1);cvMoveWindow ("Image", 0, 0);cvShowImage ("Image", pImg);cvWaitKey (0);cvDestroyWindow ("Image");cvReleaseImage (&pImg);}return 0;}

,人生难免有挫折,但你是逃避不了的,一定要去面对它

opencv 实现加载并显示图像

相关文章:

你感兴趣的文章:

标签云: