mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 22:40:17 +08:00
fix initial values bug
This commit is contained in:
parent
7e71666a0b
commit
0157ff0bc3
@ -543,6 +543,7 @@ void FeaturesMatcher::operator ()(const vector<ImageFeatures> &features, vector<
|
|||||||
if (features[i].keypoints.size() > 0 && features[j].keypoints.size() > 0 && mask_(i, j))
|
if (features[i].keypoints.size() > 0 && features[j].keypoints.size() > 0 && mask_(i, j))
|
||||||
near_pairs.push_back(make_pair(i, j));
|
near_pairs.push_back(make_pair(i, j));
|
||||||
|
|
||||||
|
pairwise_matches.clear(); // clear history values
|
||||||
pairwise_matches.resize(num_images * num_images);
|
pairwise_matches.resize(num_images * num_images);
|
||||||
MatchPairsBody body(*this, features, pairwise_matches, near_pairs);
|
MatchPairsBody body(*this, features, pairwise_matches, near_pairs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user