平台win 7 64位 vs2013 opencv3.0.0
debug和release x64的模式下都不行
#include
#include
using namespace cv;
using namespace std;
int main(){
Mat grayim(600, 800, CV_8UC1);
for (int i = 0; i < grayim.rows; i++)
for (int j = 0; j < grayim.cols; j++)
grayim.at<uchar>(i, j) = (i, j) % 255;
imshow("grayim", grayim);
waitKey(0);
return 0;
}
像这段,运行到imshow()就会中断……快崩溃了 ,网上百度的方法都试过了,还是没解决
调试报错信息:
0x00000000776FF922 (ntdll.dll) (openCV_test1.exe 中)处有未经处理的异常: 0xC0000374: 堆已损坏。 (参数: 0x0000000077776470)。