Commit a86dc747 authored by StevenPuttemans's avatar StevenPuttemans

fixing tutorial errors

parent 3bfe4f71
...@@ -185,7 +185,7 @@ Code ...@@ -185,7 +185,7 @@ Code
int result_cols = img.cols - templ.cols + 1; int result_cols = img.cols - templ.cols + 1;
int result_rows = img.rows - templ.rows + 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 /// Do the Matching and Normalize
matchTemplate( img, templ, result, match_method ); matchTemplate( img, templ, result, match_method );
...@@ -271,7 +271,7 @@ Explanation ...@@ -271,7 +271,7 @@ Explanation
int result_cols = img.cols - templ.cols + 1; int result_cols = img.cols - templ.cols + 1;
int result_rows = img.rows - templ.rows + 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: #. Perform the template matching operation:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment