IplImage* orig = cvLoadImage(imagename);
cvNamedWindow("1");
cvShowImage("1", orig);
cvWaitKey(0);//一定要有