From: Kangning Song Date: Sun, 23 Dec 2018 03:28:28 +0000 (+0800) Subject: fix initial values bug X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~357^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4917a5bd31b888e4599156ceeffd4a1c6b3d607;p=platform%2Fupstream%2Fopencv.git fix initial values bug --- diff --git a/modules/stitching/src/matchers.cpp b/modules/stitching/src/matchers.cpp index 7526109..6105c67 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);