Fix copy-paste bug

This commit is contained in:
Tony S Yu
2012-05-08 21:28:49 -04:00
parent 19f1021f60
commit 49349a07c6
+1 -1
View File
@@ -29,7 +29,7 @@ def match_template_cv(image, template, out=None, method="norm-coeff"):
dtype=image.dtype)
if method == "norm-corr":
cv.MatchTemplate(image, template, out, cv.CV_TM_CCORR_NORMED)
elif method == "norm-corr":
elif method == "norm-coeff":
cv.MatchTemplate(image, template, out, cv.CV_TM_CCOEFF_NORMED)
else:
raise ValueError("Unknown template method: %s" % method)