mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
trailing whitespace
This commit is contained in:
parent
b28056e3dd
commit
341de5d53f
@ -54,13 +54,13 @@ int main(void)
|
|||||||
for (itMatcher = typeAlgoMatch.begin(); itMatcher != typeAlgoMatch.end(); itMatcher++){
|
for (itMatcher = typeAlgoMatch.begin(); itMatcher != typeAlgoMatch.end(); itMatcher++){
|
||||||
descriptorMatcher = DescriptorMatcher::create(*itMatcher);
|
descriptorMatcher = DescriptorMatcher::create(*itMatcher);
|
||||||
descriptorMatcher->match(descImg1, descImg2, matches, Mat());
|
descriptorMatcher->match(descImg1, descImg2, matches, Mat());
|
||||||
// Keep best matches only to have a nice drawing
|
// Keep best matches only to have a nice drawing
|
||||||
Mat index;
|
Mat index;
|
||||||
Mat tab(matches.size(), 1, CV_32F);
|
Mat tab(matches.size(), 1, CV_32F);
|
||||||
for (int i = 0; i<matches.size(); i++)
|
for (int i = 0; i<matches.size(); i++)
|
||||||
tab.at<float>(i, 0) = matches[i].distance;
|
tab.at<float>(i, 0) = matches[i].distance;
|
||||||
sortIdx(tab, index, SORT_EVERY_COLUMN + SORT_ASCENDING);
|
sortIdx(tab, index, SORT_EVERY_COLUMN + SORT_ASCENDING);
|
||||||
vector<DMatch> bestMatches; /*<! best match */
|
vector<DMatch> bestMatches;
|
||||||
for (int i = 0; i<30; i++)
|
for (int i = 0; i<30; i++)
|
||||||
bestMatches.push_back(matches[index.at<int>(i, 0)]);
|
bestMatches.push_back(matches[index.at<int>(i, 0)]);
|
||||||
Mat result;
|
Mat result;
|
||||||
|
Loading…
Reference in New Issue
Block a user