mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Fixed Vis/MinDepth not working (with depth image in mm)
This commit is contained in:
@@ -505,7 +505,7 @@ std::vector<cv::KeyPoint> Feature2D::generateKeypoints(const cv::Mat & image, co
|
|||||||
if(((unsigned short*)maskIn.data)[i] > 0 &&
|
if(((unsigned short*)maskIn.data)[i] > 0 &&
|
||||||
((unsigned short*)maskIn.data)[i] < std::numeric_limits<unsigned short>::max())
|
((unsigned short*)maskIn.data)[i] < std::numeric_limits<unsigned short>::max())
|
||||||
{
|
{
|
||||||
value = float(((unsigned short*)maskIn.data)[i])*0.0001f;
|
value = float(((unsigned short*)maskIn.data)[i])*0.001f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user