pull/311/head
marina.kolpakova 12 years ago
parent 0a40bbd0d0
commit f9649a029b
  1. 2
      modules/objdetect/src/softcascade.cpp

@ -102,7 +102,7 @@ struct Feature
if (useBoxes) if (useBoxes)
rect = cv::Rect(x, y, w, h); rect = cv::Rect(x, y, w, h);
else else
rect = cv::Rect(x, y, w + x, h + x); rect = cv::Rect(x, y, w + x, h + y);
// 1 / area // 1 / area
rarea = 1.f / ((rect.width - rect.x) * (rect.height - rect.y)); rarea = 1.f / ((rect.width - rect.x) * (rect.height - rect.y));

Loading…
Cancel
Save