From 055adc2302c3a2ac6f13c77b071fd160a05035ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E9=AA=A5?= Date: Wed, 11 Jun 2014 10:29:30 +0200 Subject: [PATCH] Update MatchTemplate_Demo.cpp --- .../tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp b/samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp index b41cf94be..c9e29a4ae 100644 --- a/samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp +++ b/samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp @@ -60,7 +60,7 @@ void MatchingMethod( int, void* ) int result_cols = img.cols - templ.cols + 1; int result_rows = img.rows - templ.rows + 1; - result.create( result_cols, result_rows, CV_32FC1 ); + result.create( result_rows, result_cols, CV_32FC1 ); /// Do the Matching and Normalize matchTemplate( img, templ, result, match_method );