BUG: Fix ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

on win-amd64
This commit is contained in:
cgohlke
2013-10-10 21:48:29 -07:00
parent e3c7ad0113
commit 458556723d
+1 -1
View File
@@ -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()