From d4917a5bd31b888e4599156ceeffd4a1c6b3d607 Mon Sep 17 00:00:00 2001 From: Kangning Song Date: Sun, 23 Dec 2018 11:28:28 +0800 Subject: [PATCH] fix initial values bug --- modules/stitching/src/matchers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/stitching/src/matchers.cpp b/modules/stitching/src/matchers.cpp index 75261090c5..6105c67631 100644 --- a/modules/stitching/src/matchers.cpp +++ b/modules/stitching/src/matchers.cpp @@ -694,6 +694,7 @@ void FeaturesMatcher::operator ()(const std::vector &features, st if (features[i].keypoints.size() > 0 && features[j].keypoints.size() > 0 && mask_(i, j)) near_pairs.push_back(std::make_pair(i, j)); + pairwise_matches.clear(); // clear history values pairwise_matches.resize(num_images * num_images); MatchPairsBody body(*this, features, pairwise_matches, near_pairs);