Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

OpenCV Function help

  • 28-02-2005 06:15PM
    #1
    Closed Accounts Posts: 2


    Hi,

    Does anyone have any experience wit OpenCV? I'm trying to use a few of the functions and am getting the same error. The functions i'm using are cvCalcCovarMatrix and cvImgToObjDCT.

    Any help would be much appreciated.

    Cathy


Comments

  • Registered Users, Registered Users 2 Posts: 505 ✭✭✭Mikros


    I have some experiance with openCV.

    If you could post up what errors your getting I might be able to help you with them.


  • Closed Accounts Posts: 2 cathy_e


    Hi,

    Thanks for your reply:

    My code is compiling fine and executing. When i get to the covarMatrixEx function in the code i get the following error as the exe crashes in a MS window on my screen:

    In function: cvCalcCovarMatrixEx():
    Unsupported format
    Input image depth not supported by function

    I'm not too sure what it means, I'm fairly new to OpenCV. If it helps i could send you my code. It basically plays an avi file and puts each frame into an array to pass to the covar matrix function.
    Any ideas you have would be great.

    Thanks,
    Cathy


  • Registered Users, Registered Users 2 Posts: 505 ✭✭✭Mikros


    Without seeing some of your code it's difficult to tell you exactly what’s wrong. Feel free to post some of it up or send it to me via PM. I cant guarantee I can help but I'll give it a look.

    It does sounds like one (or some) of the parameters your passing into the cvCalcCovarMatrixEx is the problem, possibly the void* input parameter. Are you sure your passing in valid parameters?

    The error you described is usually thrown when the IplImage struct has a bad pixel depth field, which shouldn't happen if it’s properly initialised.

    Hope that will give you some idea where to look.


Advertisement