revert PR 5362
authorStevenPuttemans <steven.puttemans@kuleuven.be>
Thu, 4 Feb 2016 12:20:21 +0000 (13:20 +0100)
committerStevenPuttemans <steven.puttemans@kuleuven.be>
Thu, 4 Feb 2016 12:20:21 +0000 (13:20 +0100)
modules/objdetect/src/cascadedetect.cpp

index 5677707..e206992 100644 (file)
@@ -998,7 +998,7 @@ public:
                     {
                         if( result == 1 )
                             result = -(int)classifier->data.stages.size();
-                        if( -result >= 0 ) // TODO: Add variable to define a specific last accepted Stage - ABI_COMPATIBILITY problem with new/changed virtual functions - PR #5362
+                        if( classifier->data.stages.size() + result == 0 )
                         {
                             mtx->lock();
                             rectangles->push_back(Rect(cvRound(x*scalingFactor),