Ask Your Question

abraker95's profile - activity

2018-11-07 22:10:54 -0600 received badge  Famous Question (source)
2015-10-15 12:23:08 -0600 received badge  Notable Question (source)
2015-10-15 12:23:08 -0600 received badge  Popular Question (source)
2013-05-07 17:06:06 -0600 commented answer Accessing Mat causes crash

Still no luck. I tried different versions too. It might be far fetched but any idea is better than nothing at this point: perhaps it is the libstdc++-6.dll; what version of the dll does opencv 2.4.5 support?

2013-04-28 13:10:02 -0600 commented answer Accessing Mat causes crash

I'll try that since I used the prebuilt binaries. My best guess is that there are some incapatabilities with the prebuilt OpenCV and the compiler I'm using. I wonder under what gcc the prebuilt binaries were built under.

2013-04-25 10:53:51 -0600 commented answer Accessing Mat causes crash

Could it be a difference in operating systems? I'm running Windows XP. If not, try compiling it under the latest Code::Blocks and see if you get the same error. The only other thing I can think of is having a wrong dll. When I first used OpenCV it gave me runtime errors related to libstdc++-6.dll. I replaced Code::Block's version of the dll with another one it the runtime error went away. Unfortunately I don't know what version each one is, but I have the topic where I got it from here: http://answers.opencv.org/question/3740/opencv-243-mingw-cannot-run-program/

2013-04-24 11:09:00 -0600 commented answer Accessing Mat causes crash

Mat_ doesn't work for me either. I commented out the code line by line and the declaration itself is causing the crash "Mat_<double> M(20,20);" There must something wrong during constructing. Declaring the Mat object without initializing it works. Taking the initialization process piece by piece, it crashed when a called the create method.

2013-04-23 09:40:34 -0600 asked a question Accessing Mat causes crash

I tried to make a simple image loading test and displaying it on a window using the imshow method and it crashed. Then I tried to narrow the problem down to a simpler example like the following:

Mat C = (Mat_<double>(3,3) << 0, -1, 0, -1, 5, -1, 0, -1, 0);
cout << "C = " << endl << " " << C << endl << endl;

It gave me an an assertion failure:

    OpenCV Error: Assertion failed <0 <= d && d <= CV_MAX_DIM && _sizes) in create, file C:/slave/builds/WinInstallerMegaPack/src/opencv/modules/core/src/matrix.cpp, line 187 terminate called after throwing an instance of 'cv::Exception'
 what(): C:/slave/builds/WinInstallerMegaPack/src/opencv/modules/core/src/matrix.cpp:187: error: (-215) 0 <= d && d <= CV_MAX_DIM && _sizes in function create

I'll have to resort to using the "C" part of the OpenCV library, but I would like to now how I can get Mat working so I could use C++.

I'm using Code::Blocks 12.11 and OpenCV 2.4.5