Reputation: 3582
I am testing "grabcut.cpp" in OpenCV, but while compiling I got the following error message:
OpenCV Error: Assertion failed <dtrm> std::numeric_limits<double>::epsilon<>> in unknown function, file grabcut.cpp, line 216
That line in the file is like this:
CV_Assert( dtrm > std::numeric_limits<double>::epsilon() );
Is this a bug? How can I solve it? Thank you.
Upvotes: 1
Views: 817
Reputation: 1071
Yes this is a bug that was actually closed over one year ago. But when checking the actual 2.4.2 release i can see that the patch did not made it into the release. I don't know why but however you can turn off the assertions by just recompile OpenCV with NDEBUG as define. With Visual Studio adding /DNDEBUG to the command line should do the trick.
Upvotes: 2