#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0

    EError running my project


    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

    Code:
    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
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,900
    Rep Power
    481
    This link http://www.emgu.com/wiki/files/1.5.0.0/Help/html/d1151728-1280-b135-74e1-212528a83808.htm explains in a little detail about the arguments cvGetMat expects.

    Why don't you post at least the declarations of the arguments you pass to cvGetMat and your call to the function.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0
    The problem is I don' t use this function in my code. I can post all the code of my proyect, but I don t know if it s possible.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0
    The problem is I don' t use this function in my code. I can post all the code of my proyect, but I don t know if it s possible.
  8. #5
  9. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,900
    Rep Power
    481
    I'd continue investigating the problem by finding out how you indirectly invoked cvGetMat.

    gdb answers by RMS.
    http://www.unknownroad.com/rtfm/gdbtut/


    Compile your code with -g option.
    Run with gdb
    Set break on cvGetMat
    Get a stack trace.

    $ gdb myprogram
    b cvGetMat
    run args
    backtrace
    [code]Code tags[/code] are essential for python code and Makefiles!
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0
    I m compiling with Eclipse on Ubuntu. so i don t have this kind of problems with terminal. What I suppose is a problem using image's type in any function and a bad using of some openCV function
  12. #7
  13. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,900
    Rep Power
    481
    Finding the mischevious openCV function is the intent of backtrace. If you didn't actually want some ideas maybe you shouldn't have posted to this forum.
    [code]Code tags[/code] are essential for python code and Makefiles!
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    57
    Rep Power
    0
    I want some ideas I was just suggesting you what I think. but i m not sure about this! I suppose that running with Eclipse it 's not one problem about option compiliation. Sorry for my English
  16. #9
  17. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,900
    Rep Power
    481
    The one time I used eclipse I found it to be quite a complete IDE. I'm sure it has an integrated debugger you could use if you don't like gdb.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo