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

Comments

2

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

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

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
1

What kind of asserts are kept in release libs?

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

@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