diff --git a/skimage/feature/interest_cy.pyx b/skimage/feature/interest_cy.pyx index 04a0e180..b14e3f6a 100644 --- a/skimage/feature/interest_cy.pyx +++ b/skimage/feature/interest_cy.pyx @@ -63,7 +63,7 @@ def moravec(image, int window_size=1): cimage = rgb2grey(image) cimage = np.ascontiguousarray(img_as_float(image)) - out = np.zeros_like(image) + out = np.zeros(image.shape, dtype=np.double) cdef double* image_data = cimage.data cdef double* out_data = out.data