From 19e938a3deb4562cecbebd484afb2cd201cf6b83 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Mon, 4 Mar 2013 17:29:44 -0800 Subject: [PATCH] Fix `ValueError: Buffer dtype mismatch` on win-amd64 --- skimage/morphology/_convex_hull.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/morphology/_convex_hull.pyx b/skimage/morphology/_convex_hull.pyx index e4b6470c..7298e1ed 100644 --- a/skimage/morphology/_convex_hull.pyx +++ b/skimage/morphology/_convex_hull.pyx @@ -31,7 +31,7 @@ def possible_hull(cnp.ndarray[dtype=cnp.uint8_t, ndim=2, mode="c"] img): # rows storage slots for right boundary pixels # cols storage slots for bottom boundary pixels cdef cnp.ndarray[dtype=cnp.intp_t, ndim=2] nonzero = \ - np.ones((2 * (rows + cols), 2), dtype=np.int) + np.ones((2 * (rows + cols), 2), dtype=np.intp) nonzero *= -1 for r in range(rows):