#include <opencvcv.h> #include <opencvhighgui.h> #include <opencvcxcore.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; }
效果: