feature detectors debug/release

asked 2014-10-07 06:39:48 -0500

kgs gravatar image

When to use release libs and call detector.detect(...)(no matter what SIFT or SURF) under debugging of project get exceptions. If to use debug libs under debugging, all working good. (VS 2013, OpenCV 2.4.9) Is it necessary to use debug libs for feature detectors under debugging or I did something wrong?

edit retag flag offensive close merge delete



NEVER use release libs with a debug build (or the other way round).

berak gravatar imageberak ( 2014-10-07 06:52:55 -0500 )edit

To add to that, your release doesn't contain the thousand of ASSERTS to check and warn you for bad data or input arguments. It will render the error messages completely useless. Only use RELEASE editions once you got a completely built and bugfree DEBUG version of your software.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-07 07:51:12 -0500 )edit

Ok, thank you)

kgs gravatar imagekgs ( 2014-10-07 09:07:29 -0500 )edit

What kind of asserts are kept in release libs?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-10-07 10:36:57 -0500 )edit

@thdrksdfthmn , CV_Error, CV_Assert are kept in release mode, CV_DbgAssert gets discarded

berak gravatar imageberak ( 2014-10-07 10:45:22 -0500 )edit