1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Added fix for removing too similar images into the stitching module

This commit is contained in:
Alexey Spizhevoy
2011-09-30 12:46:11 +00:00
parent 3d3efe7c07
commit c5357cc17c
2 changed files with 11 additions and 10 deletions
+4 -3
View File
@@ -748,11 +748,12 @@ vector<int> leaveBiggestComponent(vector<ImageFeatures> &features, vector<Match
if (static_cast<int>(features_subset.size()) == num_images)
return indices;
LOG("Removed some images, because can't match them: (");
LOG(indices_removed[0]+1);
LOG("Removed some images, because can't match them or there are too similar images: (");
LOG(indices_removed[0] + 1);
for (size_t i = 1; i < indices_removed.size(); ++i)
LOG(", " << indices_removed[i]+1);
LOGLN("). Try to decrease --match_conf value.");
LOGLN(").");
LOGLN("Try to decrease --match_conf value and/or check if you're stitching duplicates.");
features = features_subset;
pairwise_matches = pairwise_matches_subset;