Update MatchTemplate_Demo.cpp
author侯骥 <ji.hou@rwth-aachen.de>
Wed, 11 Jun 2014 08:29:30 +0000 (10:29 +0200)
committer侯骥 <ji.hou@rwth-aachen.de>
Wed, 11 Jun 2014 08:29:30 +0000 (10:29 +0200)
samples/cpp/tutorial_code/Histograms_Matching/MatchTemplate_Demo.cpp

index b41cf94..c9e29a4 100644 (file)
@@ -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 );