From 9ddb8bdb8bf4c593d34647ff9f49be4e5a6abd04 Mon Sep 17 00:00:00 2001 From: laurentBerger Date: Sun, 3 May 2015 14:08:24 +0200 Subject: [PATCH] Problem with warning: comparison between signed and unsigned integer expressions --- samples/cpp/matchmethod_orb_akaze_brisk.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/cpp/matchmethod_orb_akaze_brisk.cpp b/samples/cpp/matchmethod_orb_akaze_brisk.cpp index 556870e..6711ba3 100644 --- a/samples/cpp/matchmethod_orb_akaze_brisk.cpp +++ b/samples/cpp/matchmethod_orb_akaze_brisk.cpp @@ -56,8 +56,9 @@ int main(void) descriptorMatcher->match(descImg1, descImg2, matches, Mat()); // Keep best matches only to have a nice drawing Mat index; - Mat tab(int(matches.size()), 1, CV_32F); - for (int i = 0; i(i, 0) = matches[i].distance; sortIdx(tab, index, SORT_EVERY_COLUMN + SORT_ASCENDING); vector bestMatches; -- 2.7.4