@default_selem
def erosion(image, selem=None, out=None, shift_x=False, shift_y=False):
 selem = np.array(selem)
 selem = _shift_selem(selem, shift_x, shift_y)
 if (out is None):
  out = np.empty_like(image)
 ndi.grey_erosion(image, footprint=selem, output=out)
 return out

@ default_selem def erosion ( image , selem = None , out = None , shift_x = False , shift_y = False ) : selem = np . array ( selem ) selem = _shift_selem ( selem , shift_x , shift_y ) if ( out is None ) : out = np . empty_like ( image ) ndi . grey_erosion ( image , footprint = selem , output = out ) return out
return greyscale morphological erosion of an image .