diff --git a/skimage/morphology/cmorph.pyx b/skimage/morphology/cmorph.pyx index 2e0fa88a..070c881b 100644 --- a/skimage/morphology/cmorph.pyx +++ b/skimage/morphology/cmorph.pyx @@ -9,9 +9,9 @@ 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, - char shift_x=0, char shift_y=0): + np.ndarray[np.uint8_t, ndim=2] selem, + np.ndarray[np.uint8_t, ndim=2] out=None, + char shift_x=0, char shift_y=0): """Return greyscale morphological erosion of an image. Morphological erosion sets a pixel at (i,j) to the minimum over all pixels @@ -87,9 +87,9 @@ 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, - char shift_x=0, char shift_y=0): + np.ndarray[np.uint8_t, ndim=2] selem, + np.ndarray[np.uint8_t, ndim=2] out=None, + char shift_x=0, char shift_y=0): """Return greyscale morphological dilation of an image. Morphological dilation sets a pixel at (i,j) to the maximum over all pixels diff --git a/skimage/morphology/grey.py b/skimage/morphology/grey.py index 233bca4a..ef7158b2 100644 --- a/skimage/morphology/grey.py +++ b/skimage/morphology/grey.py @@ -59,7 +59,7 @@ def erosion(image, selem, out=None, shift_x=False, shift_y=False): image = img_as_ubyte(image) selem = img_as_ubyte(selem) return cmorph._erode(image, selem, out=out, - shift_x=shift_x, shift_y=shift_y) + shift_x=shift_x, shift_y=shift_y) def dilation(image, selem, out=None, shift_x=False, shift_y=False): @@ -112,7 +112,7 @@ def dilation(image, selem, out=None, shift_x=False, shift_y=False): image = img_as_ubyte(image) selem = img_as_ubyte(selem) return cmorph._dilate(image, selem, out=out, - shift_x=shift_x, shift_y=shift_y) + shift_x=shift_x, shift_y=shift_y) def opening(image, selem, out=None):