#include "stdafx.h"
#include <iostream>
using namespace std;
#include "cv.h"
#include "highgui.h"
int main(void)
{
IplImage *pImage = NULL;
pImage = cvLoadImage("E:\\test\\test.jpg",1);
if(pImage == NULL)
{
cout<<"load image error!"<<endl;
return -1;
}
cvNamedWindow("image",1);
cvShowImage("image",pImage);
cout<<"Press any key to exit!"<<endl;
char c = cvWaitKey(0);
cvReleaseImage(&pImage);
pImage = NULL;
cvDestroyWindow("image");
return 0;
}
#include <iostream>
using namespace std;
#include "cv.h"
#include "highgui.h"
int main(void)
{
IplImage *pImage = NULL;
pImage = cvLoadImage("E:\\test\\test.jpg",1);
if(pImage == NULL)
{
cout<<"load image error!"<<endl;
return -1;
}
cvNamedWindow("image",1);
cvShowImage("image",pImage);
cout<<"Press any key to exit!"<<endl;
char c = cvWaitKey(0);
cvReleaseImage(&pImage);
pImage = NULL;
cvDestroyWindow("image");
return 0;
}