From d19d45850f83b6557f5a508854e84839b0709971 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 9 May 2012 12:53:29 -0700 Subject: [PATCH] BUG: Fix internal import in template matching. --- skimage/feature/template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/feature/template.py b/skimage/feature/template.py index e5ba8c21..26704a52 100644 --- a/skimage/feature/template.py +++ b/skimage/feature/template.py @@ -3,7 +3,7 @@ import numpy as np import _template -from skimage.util.dtype import _convert +from skimage.util.dtype import convert def match_template(image, template, pad_input=False): @@ -67,8 +67,8 @@ def match_template(image, template, pad_input=False): """ if np.any(np.less(image.shape, template.shape)): raise ValueError("Image must be larger than template.") - image = _convert(image, np.float32) - template = _convert(template, np.float32) + image = convert(image, np.float32) + template = convert(template, np.float32) if pad_input: pad_size = tuple(np.array(image.shape) + np.array(template.shape) - 1)