Hello,
I am using OpenCV 1 to do some image processing, and am confused about the cvSetErrMode function (which is part of CxCore).
OpenCV has three error modes.
- Leaf: The program is terminated after the error handler is called.
- Parent: The program is not terminated, but the error handler is called.
- Silent: Similar to Parent mode, but no error handler is called
At the start of my code, I call cvSetErrMode(CV_ErrModeParent) to switch from the default 'leaf' mode to 'parent' mode so my application is not termination an exception/assertion pop up. Unfortunately 'parent' mode doesn't seem to be working. I still get the message dialog pop up, and my application still terminates.
If I call cvSetErrMode(CV_ErrModeSilent) then it actually goes silent, and no longer quits the application or throws up a dialog... but this also means that I dont know that an error has occured. So I think the mode is being set correctly.
Has anyone else seem this behaviour before and might be able to recommend a solution?
References: