fixed outlier filtering in cvStereoRectifyUncalibrated (bug )

This commit is contained in:
Vadim Pisarevsky 2012-09-19 16:51:49 +04:00
parent 4e07561141
commit c3c49a317b

@ -2693,7 +2693,7 @@ CV_IMPL int cvStereoRectifyUncalibrated(
m2[i].y*lines1[i].y + m2[i].y*lines1[i].y +
lines1[i].z) <= threshold ) lines1[i].z) <= threshold )
{ {
if( j > i ) if( j < i )
{ {
m1[j] = m1[i]; m1[j] = m1[i];
m2[j] = m2[i]; m2[j] = m2[i];