Fix race condition for Cascade Classifier when TBB enabled.

This commit is contained in:
Zifei Tong 2012-12-27 15:43:16 +08:00
parent 5f41971305
commit e331787645

View File

@ -992,9 +992,9 @@ public:
{
mtx->lock();
rectangles->push_back(Rect(cvRound(x*scalingFactor), cvRound(y*scalingFactor), winSize.width, winSize.height));
mtx->unlock();
rejectLevels->push_back(-result);
levelWeights->push_back(gypWeight);
mtx->unlock();
}
}
else if( result > 0 )