diff --git a/corelib/src/icp/libpointmatcher.h b/corelib/src/icp/libpointmatcher.h index e2d362a6cd..46a5ef0830 100644 --- a/corelib/src/icp/libpointmatcher.h +++ b/corelib/src/icp/libpointmatcher.h @@ -513,16 +513,28 @@ struct KDTreeMatcherIntensity : public PointMatcher::Matcher for (int i = 0; i < pointsCount; ++i) { float minDistance = std::numeric_limits::max(); + bool minDistFound = false; for(int k=0; k