mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Fixed windows build
This commit is contained in:
@@ -228,7 +228,7 @@ float getDepth(
|
||||
int u_end = std::min(u+1, depthImage.cols-1);
|
||||
int v_end = std::min(v+1, depthImage.rows-1);
|
||||
|
||||
float depth = isInMM?(float)depthImage.at<uint16_t>(v,u)*0.001f:depthImage.at<float>(v,u);
|
||||
float depth = isInMM?(float)depthImage.at<unsigned short>(v,u)*0.001f:depthImage.at<float>(v,u);
|
||||
if(depth!=0.0f && uIsFinite(depth))
|
||||
{
|
||||
if(smoothing)
|
||||
@@ -241,7 +241,7 @@ float getDepth(
|
||||
{
|
||||
if(!(uu == u && vv == v))
|
||||
{
|
||||
float d = isInMM?(float)depthImage.at<uint16_t>(vv,uu)*0.001f:depthImage.at<float>(vv,uu);
|
||||
float d = isInMM?(float)depthImage.at<unsigned short>(vv,uu)*0.001f:depthImage.at<float>(vv,uu);
|
||||
// ignore if not valid or depth difference is too high
|
||||
if(d != 0.0f && uIsFinite(d) && fabs(d - depth) < maxZError)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user