0

我有一个关于 Visual Studio 2010 的简单问题。当我在调试器模式下运行简单的 5 行无错误代码时,出现异常。但是,当我从 Debug 目录运行可执行文件时,它运行良好。为什么会发生这种情况?

谢谢你。

编辑 :

#include "highgui\highgui.hpp"
#include "core\core.hpp"
#include <iostream>
using namespace cv;
int main()

{
Mat img=imread("im.jpg",CV_8UC1);
namedWindow("bok",1);
imshow("bok",img);
waitKey(10);
system("PAUSE");
return 0;
}
4

0 回答 0