Fix dtype bug

This commit is contained in:
Johannes Schönberger
2013-09-01 16:46:01 +02:00
parent 84579a6c2c
commit bc7efb01e4
+2 -2
View File
@@ -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