成功测试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");
}
#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");
}