From 56856a1810d9d3854778b87a3b21983b83e6dd68 Mon Sep 17 00:00:00 2001 From: laurentBerger Date: Sun, 3 May 2015 13:28:23 +0200 Subject: [PATCH] Conversion size-t in int --- samples/cpp/matchmethod_orb_akaze_brisk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/matchmethod_orb_akaze_brisk.cpp b/samples/cpp/matchmethod_orb_akaze_brisk.cpp index f5a0a25fb4..556870ec4f 100644 --- a/samples/cpp/matchmethod_orb_akaze_brisk.cpp +++ b/samples/cpp/matchmethod_orb_akaze_brisk.cpp @@ -56,7 +56,7 @@ int main(void) descriptorMatcher->match(descImg1, descImg2, matches, Mat()); // Keep best matches only to have a nice drawing Mat index; - Mat tab(matches.size(), 1, CV_32F); + 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);