mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-15 11:25:53 +08:00
Fix dtype bug
This commit is contained in:
@@ -46,8 +46,8 @@ def _slic_cython(double[:, :, :, ::1] image_zyx,
|
||||
|
||||
cdef Py_ssize_t[:, :, ::1] nearest_clusters \
|
||||
= np.empty((depth, height, width), dtype=np.intp)
|
||||
cdef float[:, :, ::1] distance \
|
||||
= np.empty((depth, height, width), dtype=np.float32)
|
||||
cdef double[:, :, ::1] distance \
|
||||
= np.empty((depth, height, width), dtype=np.double)
|
||||
|
||||
cdef Py_ssize_t i, c, k, x, y, z, x_min, x_max, y_min, y_max, z_min, \
|
||||
z_max
|
||||
|
||||
Reference in New Issue
Block a user