Commit 98e0d13f authored by Steven Puttemans's avatar Steven Puttemans

fixing issue 9583 - issue in cascadeclassifier code clipObjects

parent 9c973144
......@@ -1666,7 +1666,7 @@ void clipObjects(Size sz, std::vector<Rect>& objects,
for( i = 0; i < n; i++ )
{
Rect r = win0 & objects[i];
if( r.area() > 0 )
if( !r.empty() )
{
objects[j] = r;
if( i > j )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment