fixed bug in cv::gpu::HOGDescriptor::detectMultiScale

pull/2/head
Vladislav Vinogradov 13 years ago
parent 7a858885e6
commit e7c35b1852
  1. 4
      modules/gpu/src/hog.cpp

@ -323,8 +323,8 @@ void cv::gpu::HOGDescriptor::detectMultiScale(const GpuMat& img, vector<Rect>& f
for (size_t i = 0; i < level_scale.size(); i++)
{
double _scale = level_scale[i];
Size sz(cvRound(img.cols / _scale), cvRound(img.rows / _scale));
scale = level_scale[i];
Size sz(cvRound(img.cols / scale), cvRound(img.rows / scale));
GpuMat smaller_img;
if (sz == img.size())

Loading…
Cancel
Save