From 458556723dae3fe670ee380de4833361ad02dfae Mon Sep 17 00:00:00 2001 From: cgohlke Date: Thu, 10 Oct 2013 21:48:29 -0700 Subject: [PATCH] BUG: Fix ValueError: Buffer dtype mismatch, expected 'long' but got 'long long' on win-amd64 --- skimage/transform/_hough_transform.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/transform/_hough_transform.pyx b/skimage/transform/_hough_transform.pyx index a3aa2649..e5fd3ed8 100644 --- a/skimage/transform/_hough_transform.pyx +++ b/skimage/transform/_hough_transform.pyx @@ -149,7 +149,7 @@ def hough_ellipse(cnp.ndarray img, int threshold=4, double accuracy=1, if img.ndim != 2: raise ValueError('The input image must be 2D.') - cdef long[:, :] pixels = np.transpose(np.nonzero(img)) + cdef Py_ssize_t[:, :] pixels = np.transpose(np.nonzero(img)) cdef Py_ssize_t num_pixels = pixels.shape[0] cdef list acc = list() cdef list results = list()