From f9649a029bfefafce29d559e1a97b5f0ac3b06b0 Mon Sep 17 00:00:00 2001 From: "marina.kolpakova" Date: Mon, 14 Jan 2013 23:33:12 +0400 Subject: [PATCH] fix typo --- modules/objdetect/src/softcascade.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/objdetect/src/softcascade.cpp b/modules/objdetect/src/softcascade.cpp index 56e8f430f..2a6ed8d6e 100644 --- a/modules/objdetect/src/softcascade.cpp +++ b/modules/objdetect/src/softcascade.cpp @@ -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));