mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
util2d::getDepth(): fixed small error on depth assignation (mm)
This commit is contained in:
@@ -1002,7 +1002,7 @@ float getDepth(
|
|||||||
if(depthImage.at<unsigned short>(vv,uu) > 0 &&
|
if(depthImage.at<unsigned short>(vv,uu) > 0 &&
|
||||||
depthImage.at<unsigned short>(vv,uu) < std::numeric_limits<unsigned short>::max())
|
depthImage.at<unsigned short>(vv,uu) < std::numeric_limits<unsigned short>::max())
|
||||||
{
|
{
|
||||||
depth = float(depthImage.at<unsigned short>(vv,uu))*0.001f;
|
d = float(depthImage.at<unsigned short>(vv,uu))*0.001f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1049,7 +1049,7 @@ float getDepth(
|
|||||||
if(depthImage.at<unsigned short>(vv,uu) > 0 &&
|
if(depthImage.at<unsigned short>(vv,uu) > 0 &&
|
||||||
depthImage.at<unsigned short>(vv,uu) < std::numeric_limits<unsigned short>::max())
|
depthImage.at<unsigned short>(vv,uu) < std::numeric_limits<unsigned short>::max())
|
||||||
{
|
{
|
||||||
depth = float(depthImage.at<unsigned short>(vv,uu))*0.001f;
|
d = float(depthImage.at<unsigned short>(vv,uu))*0.001f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user