From 66fc6126d2754e0595512cd763a71e34146e127a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E4=BE=AF=E9=AA=A5?= Date: Wed, 11 Jun 2014 10:29:30 +0200 Subject: [PATCH] Update MatchTemplate_Demo.cpp --- samples/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 ca318be..10af6ae 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 ); -- 2.7.4