I prefer "double", also just do `cdef double[:, ::1] out = np.zeros_like(img, dtype=np.double)