Commit f430f808 authored by Auron-X's avatar Auron-X

Bug fix #2

The bug has the same origin as:
https://github.com/Itseez/opencv_contrib/pull/187
The problem was in "fast" version of function generating a binary code
for ensemble classifier posterior probability calculation. Bug was
eliminated by fixing the order of "values" in offsets calculating
function
parent 0ea70a46
......@@ -302,8 +302,8 @@ void TLDEnsembleClassifier::prepareClassifier(int rowstep)
lastStep_ = rowstep;
for( int i = 0; i < (int)offset.size(); i++ )
{
offset[i].x = rowstep * measurements[i].val[0] + measurements[i].val[1];
offset[i].y = rowstep * measurements[i].val[2] + measurements[i].val[3];
offset[i].x = rowstep * measurements[i].val[2] + measurements[i].val[0];
offset[i].y = rowstep * measurements[i].val[3] + measurements[i].val[1];
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment