1 | initial version |
vector<matchesinfo> pairwise_matches;
BestOf2NearestMatcher matcher(false, 0.3f);
Mat matchMask(features.size(),features.size(),CV_8U,Scalar(0));
for (int i = 0; i < num_images -1; ++i)
matchMask.at<char>(i,i+1) =1;
matcher(features, pairwise_matches, matchMask);
matcher.collectGarbage();
Replace this code in your stitching_detailed.cpp and you'll be able to perform linear pairwise matching, as you already know the sequence of images.