cv :: Mat使用Visual C ++ Express 2010提供错误 [英] cv::Mat gives error with Visual C++ Express 2010
问题描述
我在64位计算机的Visual C ++ 2010 Express中有opencv2.1和编码。我以前没有问题,我可以工作我的其他代码,但以下简单的代码给出一个错误:
I have opencv2.1 and coding in Visual C++ 2010 Express in 64bit computer. I didn't have problems before, I could work my other codes, however the following simple code gives an error:
未处理的异常0x571365af (msvcr90d.dll):
0xC0000005:访问冲突读取位置0x6d622e65。
Unhandled exception at 0x571365af (msvcr90d.dll) in cvMatExample.exe: 0xC0000005: Access violation reading location 0x6d622e65.
#include "cvaux.h"
#include "highgui.h"
#include <stdio.h>
using namespace cv;
using namespace std;
int main(){
Mat xxx;
xxx= imread("frame.bmp",0);
namedWindow("Result",CV_WINDOW_AUTOSIZE);
imshow("Result", xxx);
return 0;
}
那么问题到底在哪里呢?或者是cv :: Mat与我的电脑不兼容?先感谢。
So where exactly is the problem? or is cv::Mat not compatible with my computer? Thanks in advance.
推荐答案
我有同样的问题。对我有用的是修复我的.Net安装:
I had exactly the same problem. What worked for me was to repair my .Net installation with this:
http://www.microsoft.com/en-us/download/details.aspx?id=17718
然后在系统询问时重新启动。
Then reboot when asked.
干杯
这篇关于cv :: Mat使用Visual C ++ Express 2010提供错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!