Fix contiguous bug in moravec operator

This commit is contained in:
Johannes Schönberger
2012-12-09 17:34:12 +01:00
parent 82089f7fc8
commit 6593e27b4d
+1 -1
View File
@@ -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 = <double*>cimage.data
cdef double* out_data = <double*>out.data