成功测试opencv1.0+vc6.0

#include "stdafx.h"


#include "cv.h"
#include "highgui.h"
#include "cxcore.h"
 
 
//可以用
int main(int argc, char** argv)
{
IplImage* img=cvLoadImage("E:\\1.JPG");
cvNamedWindow("Example",CV_WINDOW_AUTOSIZE);
cvShowImage("Example",img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example");
}

posted on 2015-06-30 01:13  fag888  阅读(308)  评论(0编辑  收藏  举报

导航