fixing tutorial errors
This commit is contained in:
parent
3bfe4f711d
commit
a86dc747b3
@ -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
|
|||||||
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:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user