From 8bf58937a93a1aee05e44c7367cc3161878ba5df Mon Sep 17 00:00:00 2001 From: StevenPuttemans Date: Wed, 29 Oct 2014 13:50:20 +0100 Subject: [PATCH] fixing SVM negative value rounding --- modules/objdetect/src/hog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 1c0fbf2ae..389fa0934 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -2650,7 +2650,7 @@ void HOGDescriptor::groupRectangles(vector& rectList, vector& vector > rrects(nclasses); vector numInClass(nclasses, 0); - vector foundWeights(nclasses, DBL_MIN); + vector foundWeights(nclasses, -std::numeric_limits::max()); int i, j, nlabels = (int)labels.size(); for( i = 0; i < nlabels; i++ )