|
[img]file:///C:\Users\864111675\Documents\Tencent Files\864111675\Image\C2C\45ZYKOQZYOJXZ_02]A[L3C8.png[/img]C:\Users\864111675\Desktop#include "stdafx.h"#include"cv.h"
#include"highgui.h"
#include"cxcore.h"
int main(int argc, char* argv[])
{
IplImage*img=cvLoadImage("D:\\2222.jpg");
cvNamedWindow("ShowImage1",CV_WINDOW_AUTOSIZE);
cvShowImage("ShowImage1",img);
cvWaitKey(3000);
cvReleaseImage(&img);
cvDestroyWindow("ShowImage1");
return 0;
}
然后显示
Unknown error code -49 (Deallocation error)
in function cvFree_, \opencv\cxcore\src\cxalloc.cpp(129)
但是删掉Release那一句就好了
|
|