appropriate logic behind last accepted stage when rejectingLevels is true

This commit is contained in:
Dikay900 2015-10-09 23:19:42 +02:00
parent 0f1fdd885d
commit 7b0b12de58

View File

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