mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed mask when there are inf values in depth image
This commit is contained in:
@@ -541,7 +541,8 @@ std::vector<cv::KeyPoint> Feature2D::generateKeypoints(const cv::Mat & image, co
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(value>_minDepth &&
|
if(value>_minDepth &&
|
||||||
(_maxDepth == 0.0f || value <= _maxDepth))
|
(_maxDepth == 0.0f || value <= _maxDepth) &&
|
||||||
|
uIsFinite(value))
|
||||||
{
|
{
|
||||||
((unsigned char*)mask.data)[i] = 255; // ORB uses 255 to handle pyramids
|
((unsigned char*)mask.data)[i] = 255; // ORB uses 255 to handle pyramids
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user