mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
BUG: Buffer dtype mismatch in _seam_carving.pyx
This commit is contained in:
1 parent
ff082d283c
commit
d8213fe814
1 file changed
+1
-1
@@ -180,7 +180,7 @@ def _seam_carve_v(img, energy_map, iters, border):
|
||||
cdef Py_ssize_t seams_left = iters
|
||||
cdef Py_ssize_t seams_removed
|
||||
cdef Py_ssize_t seam_idx
|
||||
cdef Py_ssize_t[::1] seam_buffer = np.zeros(rows, dtype=np.int)
|
||||
cdef Py_ssize_t[::1] seam_buffer = np.zeros(rows, dtype=np.intp)
|
||||
|
||||
cdef cnp.double_t[:, :, ::1] image = img
|
||||
cdef cnp.int8_t[:, ::1] track_img = np.zeros(img.shape[0:2], dtype=np.int8)
|
||||
|
||||
Reference in new issue
Block a user