From a86dc747b3074f7002033910546ceec8b752c536 Mon Sep 17 00:00:00 2001 From: StevenPuttemans Date: Wed, 28 Jan 2015 13:52:50 +0100 Subject: [PATCH] fixing tutorial errors --- .../imgproc/histograms/template_matching/template_matching.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorials/imgproc/histograms/template_matching/template_matching.rst b/doc/tutorials/imgproc/histograms/template_matching/template_matching.rst index db6838a..32878df 100644 --- a/doc/tutorials/imgproc/histograms/template_matching/template_matching.rst +++ b/doc/tutorials/imgproc/histograms/template_matching/template_matching.rst @@ -185,7 +185,7 @@ Code 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 ); @@ -271,7 +271,7 @@ Explanation 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 ); #. Perform the template matching operation: -- 2.7.4