Error running my project

asked 2013-06-03 10:38:44 -0600

residentelvio gravatar image

updated 2020-10-24 15:55:11 -0600

Hi, I have this error running my project. I suppose is an error about a file in openCV I downloaded. Is it true? Can I post all my project to see if it works , or what are eventual problems. I m new in OpenCV. Best regards

OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /build/buildd/opencv-2.3.1/modules/core/src/array.cpp, line 2482
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.3.1/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat
edit retag flag offensive close merge delete

Comments

please post your code

Jawaher Khemakhem gravatar imageJawaher Khemakhem ( 2013-06-03 10:51:16 -0600 )edit

May be there is a problem with the type of the image that your code reads , have a look here http://opencv.willowgarage.com/documentation/cpp/reading_and_writing_images_and_video.html#cv-imread

Jawaher Khemakhem gravatar imageJawaher Khemakhem ( 2013-06-03 10:54:39 -0600 )edit

i m going to open a new question because I can' t write all the code here now.

residentelvio gravatar imageresidentelvio ( 2013-06-03 12:10:36 -0600 )edit
3

that message says, that some input image mat is empty. check any place in your code, where you load something, images, etc.

berak gravatar imageberak ( 2013-06-03 13:52:27 -0600 )edit

yes I try your code and everything is ok

Jawaher Khemakhem gravatar imageJawaher Khemakhem ( 2013-06-03 14:22:15 -0600 )edit

so why it give me this message if is ok?

residentelvio gravatar imageresidentelvio ( 2013-06-03 17:49:32 -0600 )edit

I m using ubuntu on a VM cos I have win8 as OS, so what I need to do is download the jpeg library? where do I find and use it?

residentelvio gravatar imageresidentelvio ( 2013-06-03 18:04:35 -0600 )edit

I used a bmp image in the code because is always supported as is written in comments of wiki, and I see the same error. So I suppose that is an error using some openCV function . All my project's code is here: http://answers.opencv.org/question/14589/project-about-image-processing/?comment=14597#comment-14597

residentelvio gravatar imageresidentelvio ( 2013-06-04 07:38:23 -0600 )edit