Commit 56856a18 authored by laurentBerger's avatar laurentBerger

Conversion size-t in int

parent 341de5d5
...@@ -56,7 +56,7 @@ int main(void) ...@@ -56,7 +56,7 @@ int main(void)
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(int(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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment