add resetting the offset variable after setting a new image
This commit is contained in:
@@ -677,6 +677,10 @@ void HaarEvaluator::computeOptFeatures()
|
||||
copyVectorToUMat(*optfeatures_lbuf, ufbuf);
|
||||
}
|
||||
|
||||
bool HaarEvaluator::setImage(InputArray _image, const std::vector<float>& _scales){
|
||||
tofs = 0;
|
||||
return FeatureEvaluator::setImage(_image, _scales);
|
||||
}
|
||||
|
||||
bool HaarEvaluator::setWindow( Point pt, int scaleIdx )
|
||||
{
|
||||
|
Reference in New Issue
Block a user