Permalink
Browse files

Fix `ValueError: Buffer dtype mismatch` on win-amd64

  • Loading branch information...
1 parent 19e938a commit dda83fdb5586d69b06043d57ba312a12f277c05c @cgohlke cgohlke committed Mar 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 = <cnp.intp_t*>edges.data
cdef cnp.float_t *costs_p = <cnp.float_t*>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

0 comments on commit dda83fd

Please sign in to comment.