mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +08:00
fixing SVM negative value rounding
Conflicts: modules/objdetect/src/hog.cpp fix android build
This commit is contained in:
parent
e96b8ce781
commit
6aedd4f7b0
@ -46,6 +46,7 @@
|
|||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
/****************************************************************************************\
|
/****************************************************************************************\
|
||||||
The code below is implementation of HOG (Histogram-of-Oriented Gradients)
|
The code below is implementation of HOG (Histogram-of-Oriented Gradients)
|
||||||
@ -3533,7 +3534,7 @@ void HOGDescriptor::groupRectangles(std::vector<cv::Rect>& rectList, std::vector
|
|||||||
|
|
||||||
std::vector<cv::Rect_<double> > rrects(nclasses);
|
std::vector<cv::Rect_<double> > rrects(nclasses);
|
||||||
std::vector<int> numInClass(nclasses, 0);
|
std::vector<int> numInClass(nclasses, 0);
|
||||||
std::vector<double> foundWeights(nclasses, DBL_MIN);
|
std::vector<double> foundWeights(nclasses, -std::numeric_limits<double>::max());
|
||||||
int i, j, nlabels = (int)labels.size();
|
int i, j, nlabels = (int)labels.size();
|
||||||
|
|
||||||
for( i = 0; i < nlabels; i++ )
|
for( i = 0; i < nlabels; i++ )
|
||||||
|
Loading…
Reference in New Issue
Block a user