fixing SVM negative value rounding

pull/3382/head
StevenPuttemans 10 years ago
parent d77088b19b
commit 8bf58937a9
  1. 2
      modules/objdetect/src/hog.cpp

@ -2650,7 +2650,7 @@ void HOGDescriptor::groupRectangles(vector<cv::Rect>& rectList, vector<double>&
vector<cv::Rect_<double> > rrects(nclasses);
vector<int> numInClass(nclasses, 0);
vector<double> foundWeights(nclasses, DBL_MIN);
vector<double> foundWeights(nclasses, -std::numeric_limits<double>::max());
int i, j, nlabels = (int)labels.size();
for( i = 0; i < nlabels; i++ )

Loading…
Cancel
Save