clip the found objects in HOG as well (http://code.opencv.org/issues/3825); added test to check CascadeClassifier on small images (http://code.opencv.org/issues/3710)

This commit is contained in:
Vadim Pisarevsky
2015-05-28 21:02:27 +03:00
parent 8c3c6b31fc
commit 882c0321f4
4 changed files with 39 additions and 5 deletions

View File

@@ -1587,9 +1587,8 @@ bool CascadeClassifier::read(const FileNode &root)
return ok;
}
static void clipObjects(Size sz, std::vector<Rect>& objects,
std::vector<int>* a,
std::vector<double>* b)
void clipObjects(Size sz, std::vector<Rect>& objects,
std::vector<int>* a, std::vector<double>* b)
{
size_t i, j = 0, n = objects.size();
Rect win0 = Rect(0, 0, sz.width, sz.height);