From b8149aca1b3b32767c2e03dc4f05f622d934f58a Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sun, 10 Jul 2011 14:28:38 -0700 Subject: [PATCH] _hough_transform: Type fix. --- scikits/image/transform/_hough_transform.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikits/image/transform/_hough_transform.pyx b/scikits/image/transform/_hough_transform.pyx index 3373c0b3..6239b5b1 100644 --- a/scikits/image/transform/_hough_transform.pyx +++ b/scikits/image/transform/_hough_transform.pyx @@ -44,7 +44,7 @@ def _hough(np.ndarray img, np.ndarray[ndim=1, dtype=np.double_t] theta=None): offset = max_distance / 2 # compute the nonzero indexes - cdef np.ndarray[ndim=1, dtype=np.int32_t] x_idxs, y_idxs + cdef np.ndarray[ndim=1, dtype=np.int_t] x_idxs, y_idxs y_idxs, x_idxs = np.PyArray_Nonzero(img) # finally, run the transform