From 99e29973379b9351e1b71b8314400123ea3947fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Sat, 16 Feb 2013 08:33:41 +0100 Subject: [PATCH] declare cython variables --- skimage/transform/_hough_transform.pyx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skimage/transform/_hough_transform.pyx b/skimage/transform/_hough_transform.pyx index c274ed0d..98ba1bff 100644 --- a/skimage/transform/_hough_transform.pyx +++ b/skimage/transform/_hough_transform.pyx @@ -48,11 +48,13 @@ def _hough_circle(np.ndarray img, \ y, x = np.nonzero(img) # Offset the image - max_radius = radius.max() + cdef int max_radius = radius.max() x = x + max_radius y = y + max_radius cdef list H = list() + cdef int px, py + cdef np.ndarray[ndim=1, dtype=np.npy_intp] tx, ty for rad in radius: # Accumulator