minor refactoring of opencv_stitching

This commit is contained in:
Alexey Spizhevoy
2011-05-28 13:03:28 +00:00
parent 7881134cf7
commit eadb3bad45
3 changed files with 31 additions and 26 deletions

View File

@@ -219,6 +219,7 @@ struct MatchPairsBody
for (size_t j = 0; j < pairwise_matches[dual_pair_idx].matches.size(); ++j)
swap(pairwise_matches[dual_pair_idx].matches[j].queryIdx,
pairwise_matches[dual_pair_idx].matches[j].trainIdx);
LOG(".");
}
}
@@ -248,6 +249,7 @@ void FeaturesMatcher::operator ()(const vector<ImageFeatures> &features, vector<
parallel_for(BlockedRange(0, static_cast<int>(near_pairs.size())), body);
else
body(BlockedRange(0, static_cast<int>(near_pairs.size())));
LOGLN("");
}