This commit is contained in:
marina.kolpakova 2013-01-14 23:33:12 +04:00
parent 0a40bbd0d0
commit f9649a029b

View File

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