From 6593e27b4d9ba305a8b0d4ef246fed64b54edaf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Tue, 11 Sep 2012 08:37:45 +0200 Subject: [PATCH] Fix contiguous bug in moravec operator --- skimage/feature/interest_cy.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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