From: 侯骥 Date: Wed, 11 Jun 2014 08:29:30 +0000 (+0200) Subject: Update MatchTemplate_Demo.cpp X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~346^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=055adc2302c3a2ac6f13c77b071fd160a05035ff;p=profile%2Fivi%2Fopencv.git Update MatchTemplate_Demo.cpp --- diff --git a/samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp b/samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp index b41cf94..c9e29a4 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 );