Im using Visual Studio 2012 with OpenCv 2.4.6 and I don't know if I'm doing sth wrong but I can't do the simplest imread(), because there is a problem with R6010 abort has been called
1 | initial version |
Im using Visual Studio 2012 with OpenCv 2.4.6 and I don't know if I'm doing sth wrong but I can't do the simplest imread(), because there is a problem with R6010 abort has been called
2 | No.2 Revision |
Im using Visual Studio 2012 with OpenCv 2.4.6 and I don't know if I'm doing sth wrong but I can't do the simplest imread(), because there is a problem with R6010 abort has been called
3 | No.3 Revision |
Im using Visual Studio 2012 with OpenCv 2.4.6 and I don't know if I'm doing sth wrong but I can't do the simplest imread(), because there is a problem with R6010 abort has been called
4 | No.4 Revision |
Im using Visual Studio 2012 with OpenCv 2.4.6 and I don't know if I'm doing sth wrong but I can't do the simplest imread(), because there is a problem with R6010 abort has been called
#include "mainwindow.h"
#include <QApplication>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Mat img = imread("c:/a.jpg",1);
imshow("window1",img);
MainWindow w;
w.show();
return a.exec();
}
and this is the bug
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in unknown function, file C:\slave\builds\WinInstallerMegaPack\src\opencv\modules\highgui\src\window.cpp, line 261