From 49349a07c6ca1dd94f157793996597b20704c244 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Sun, 11 Dec 2011 22:20:52 -0500 Subject: [PATCH] Fix copy-paste bug --- skimage/detection/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/detection/template.py b/skimage/detection/template.py index 91412e94..e0ad01ef 100644 --- a/skimage/detection/template.py +++ b/skimage/detection/template.py @@ -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)