Merge pull request #3830 from NaerChang:issue.3710

This commit is contained in:
Vadim Pisarevsky 2015-03-16 09:05:42 +00:00
commit 259a54a6dd

View File

@ -1268,7 +1268,7 @@ void CascadeClassifierImpl::detectMultiScaleNoGrouping( InputArray _image, std::
scales.push_back((float)factor);
}
if( !featureEvaluator->setImage(gray, scales) )
if( scales.size() == 0 || !featureEvaluator->setImage(gray, scales) )
return;
// OpenCL code