Avoid clearing HaarEvaluator::tofs variable (introduced fb8478eb7b6c76f15c106c29a8843...
authorDavid Hirvonen <dhirvonen@elucideye.com>
Wed, 13 May 2015 21:34:16 +0000 (17:34 -0400)
committerDavid Hirvonen <dhirvonen@elucideye.com>
Wed, 13 May 2015 21:34:16 +0000 (17:34 -0400)
I'm guessing there is a unit test for this that needs to be called 2x with the same image and search parameters (or another image with the same size) to illustrate the problem.

modules/objdetect/src/cascadedetect.cpp

index bc1fedc..cf2d6ca 100644 (file)
@@ -680,7 +680,6 @@ void HaarEvaluator::computeOptFeatures()
 }
 
 bool HaarEvaluator::setImage(InputArray _image, const std::vector<float>& _scales){
-    tofs = 0;
     return FeatureEvaluator::setImage(_image, _scales);
 }