From 0a25983257f5abfa693739d1a06cd8b033fac4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Scho=CC=88nberger?= Date: Mon, 16 Jan 2017 11:45:14 +0100 Subject: [PATCH] Do not clear inliers in guided matching --- src/base/feature_matching.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/base/feature_matching.cc b/src/base/feature_matching.cc index b8eddced3..abfeaa475 100755 --- a/src/base/feature_matching.cc +++ b/src/base/feature_matching.cc @@ -1668,7 +1668,6 @@ void MatchGuidedSiftFeaturesCPU(const SiftMatchOptions& match_options, return ((H * p1).hnormalized() - p2).squaredNorm() > max_residual; }; } else { - two_view_geometry->inlier_matches.clear(); return; } @@ -1798,7 +1797,6 @@ void MatchGuidedSiftFeaturesGPU(const SiftMatchOptions& match_options, H = two_view_geometry->H.cast(); H_ptr = H.data(); } else { - two_view_geometry->inlier_matches.clear(); return; }