From 8bb5f0d905332d996d49b29da634bff33454eb86 Mon Sep 17 00:00:00 2001 From: Mathieu Labbe Date: Thu, 14 Apr 2016 11:24:36 -0400 Subject: [PATCH] Fixed Vis/MinDepth not working (with depth image in mm) --- corelib/src/Features2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corelib/src/Features2d.cpp b/corelib/src/Features2d.cpp index 67e594f1..e7c9a153 100644 --- a/corelib/src/Features2d.cpp +++ b/corelib/src/Features2d.cpp @@ -505,7 +505,7 @@ std::vector Feature2D::generateKeypoints(const cv::Mat & image, co if(((unsigned short*)maskIn.data)[i] > 0 && ((unsigned short*)maskIn.data)[i] < std::numeric_limits::max()) { - value = float(((unsigned short*)maskIn.data)[i])*0.0001f; + value = float(((unsigned short*)maskIn.data)[i])*0.001f; } } else