我正在尝试使用以下代码的 OpenCV 基本程序:
#include "stdafx.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
int _tmain(int argc, _TCHAR* argv[])
{
IplImage *img = cvLoadImage("give-back-to-society.jpg");
cvNamedWindow("Image:",1);
cvShowImage("Image:",img);
cvWaitKey();
cvDestroyWindow("Image:");
cvReleaseImage(&img);
return 0;
}
最佳答案
尝试将 dll 复制到应用程序的工作目录。这至少应该提供一个快速修复。
也可使用此文档作为引用:http://msdn.microsoft.com/en-us/library/7d83bc18%28v=VS.100%29.aspx
https://stackoverflow.com/questions/6902319/