mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
Fix assert_nD call in template.py
This commit is contained in:
@@ -103,7 +103,7 @@ def match_template(image, template, pad_input=False, mode='constant',
|
||||
[ 0. , 0. , 0. , 0.125, -1. , 0.125],
|
||||
[ 0. , 0. , 0. , 0.125, 0.125, 0.125]], dtype=float32)
|
||||
"""
|
||||
assert_nD(ndim=(2, 3))
|
||||
assert_nD(image, ndim=(2, 3))
|
||||
|
||||
if image.ndim < template.ndim:
|
||||
raise ValueError("Dimensionality of template must be less than or "
|
||||
|
||||
Reference in New Issue
Block a user