From a5fe574bd954e35a000d12f75df9d9cf4cc6cbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sat, 1 Sep 2012 14:57:56 +0200 Subject: [PATCH] Remove unused imports and add missing types --- skimage/morphology/cmorph.pyx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/skimage/morphology/cmorph.pyx b/skimage/morphology/cmorph.pyx index 5e5a88f9..fb1e3af1 100644 --- a/skimage/morphology/cmorph.pyx +++ b/skimage/morphology/cmorph.pyx @@ -5,15 +5,13 @@ import numpy as np cimport numpy as np -cimport cython -from cpython cimport bool from libc.stdlib cimport malloc, free def dilate(np.ndarray[np.uint8_t, ndim=2] image, np.ndarray[np.uint8_t, ndim=2] selem, np.ndarray[np.uint8_t, ndim=2] out=None, - shift_x=False, shift_y=False): + char shift_x=0, char shift_y=0): cdef int rows = image.shape[0] cdef int cols = image.shape[1] @@ -68,7 +66,7 @@ def dilate(np.ndarray[np.uint8_t, ndim=2] image, def erode(np.ndarray[np.uint8_t, ndim=2] image, np.ndarray[np.uint8_t, ndim=2] selem, np.ndarray[np.uint8_t, ndim=2] out=None, - shift_x=False, shift_y=False): + char shift_x=0, char shift_y=0): cdef int rows = image.shape[0] cdef int cols = image.shape[1]