mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
util2d::getDepth() fixed tmp not divided
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user