Fix assert_nD call in template.py

This commit is contained in:
Steven Silvester
2014-09-20 20:09:26 -05:00
parent d2aaae40c8
commit 04f91021a9
+1 -1
View File
@@ -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 "