diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 1c0fbf2aea..389fa09347 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++ )