From dda83fdb5586d69b06043d57ba312a12f277c05c Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Mon, 4 Mar 2013 17:30:40 -0800 Subject: [PATCH] Fix `ValueError: Buffer dtype mismatch` on win-amd64 --- skimage/segmentation/_felzenszwalb_cy.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/segmentation/_felzenszwalb_cy.pyx b/skimage/segmentation/_felzenszwalb_cy.pyx index f285e3db..b525a0d9 100644 --- a/skimage/segmentation/_felzenszwalb_cy.pyx +++ b/skimage/segmentation/_felzenszwalb_cy.pyx @@ -73,7 +73,7 @@ def _felzenszwalb_grey(image, double scale=1, sigma=0.8, Py_ssize_t min_size=20) cdef cnp.intp_t *edges_p = edges.data cdef cnp.float_t *costs_p = costs.data cdef cnp.ndarray[cnp.intp_t, ndim=1] segment_size \ - = np.ones(width * height, dtype=np.int) + = np.ones(width * height, dtype=np.intp) # inner cost of segments cdef cnp.ndarray[cnp.float_t, ndim=1] cint = np.zeros(width * height) cdef int seg0, seg1, seg_new, e