util2d::getDepth() fixed tmp not divided

This commit is contained in:
matlabbe
2016-08-27 09:06:15 -04:00
parent 7161756cc9
commit fb527e5df4

View File

@@ -1016,9 +1016,9 @@ float getDepth(
tmp = d;
++count;
}
else if(fabs(d - tmp) < maxZError)
else if(fabs(d - tmp/float(count)) < maxZError)
{
tmp+=d;
tmp += d;
++count;
}
}