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:
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;
}
So where exactly is the problem? or is cv::Mat not compatible with my computer? Thanks in advance.