From d7fdfebb96830b98b67efa57e19a935fd0df1c1d Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Tue, 4 Nov 2014 15:08:38 +1100 Subject: [PATCH] Remove contiguous conversion for out array --- skimage/morphology/cmorph.pyx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/skimage/morphology/cmorph.pyx b/skimage/morphology/cmorph.pyx index 9457dd9e..d248ea9c 100644 --- a/skimage/morphology/cmorph.pyx +++ b/skimage/morphology/cmorph.pyx @@ -49,8 +49,6 @@ def _dilate(np.uint8_t[:, :] image, image = np.ascontiguousarray(image) if out is None: out = np.zeros((rows, cols), dtype=np.uint8) - else: - out = np.ascontiguousarray(out) cdef Py_ssize_t r, c, rr, cc, s, value, local_max @@ -125,8 +123,6 @@ def _erode(np.uint8_t[:, :] image, image = np.ascontiguousarray(image) if out is None: out = np.zeros((rows, cols), dtype=np.uint8) - else: - out = np.ascontiguousarray(out) cdef int r, c, rr, cc, s, value, local_min