mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 15:06:00 +08:00
Add missing bracket in doc tests
This commit is contained in:
@@ -89,7 +89,7 @@ def match_template(image, template, pad_input=False, mode='constant',
|
||||
array([[ 1. , -0.125, 0. , 0. ],
|
||||
[-0.125, -0.125, 0. , 0. ],
|
||||
[ 0. , 0. , 0.125, 0.125],
|
||||
[ 0. , 0. , 0.125, -1. ]], dtype=float32))
|
||||
[ 0. , 0. , 0.125, -1. ]], dtype=float32)
|
||||
>>> result = match_template(image, template, pad_input=True)
|
||||
>>> np.round(result, 3)
|
||||
array([[-0.125, -0.125, -0.125, 0. , 0. , 0. ],
|
||||
@@ -97,7 +97,7 @@ def match_template(image, template, pad_input=False, mode='constant',
|
||||
[-0.125, -0.125, -0.125, 0. , 0. , 0. ],
|
||||
[ 0. , 0. , 0. , 0.125, 0.125, 0.125],
|
||||
[ 0. , 0. , 0. , 0.125, -1. , 0.125],
|
||||
[ 0. , 0. , 0. , 0.125, 0.125, 0.125]], dtype=float32))
|
||||
[ 0. , 0. , 0. , 0.125, 0.125, 0.125]], dtype=float32)
|
||||
"""
|
||||
|
||||
if np.any(np.less(image.shape, template.shape)):
|
||||
|
||||
Reference in New Issue
Block a user