#include "highgui.h"
int main(int argc,char** argv)
{
IplImage* img = cvLoadImage("test.jpg");
cvNameWindow("Example1",CV_WINDOW_AUTOSIZE);
cvShowImage("Example1",img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example1");
}