Opencv 简单的图片显示
#include <opencv\cv.h> #include <opencv\highgui.h> #include <opencv\cxcore.h> int main(int argc,char* argv[]){ IplImage* src = cvLoadImage("d:\\1.jpg" , 1); cvNamedWindow("show_image"); cvShowImage("show_image",src); cvWaitKey(0); return 0; }
效果: