def grey_erosion(input, size=None, footprint=None, structure=None, output=None, mode='reflect', cval=0.0, origin=0):
 if ((size is None) and (footprint is None) and (structure is None)):
  raise ValueError('size, footprint or structure must be specified')
 return filters._min_or_max_filter(input, size, footprint, structure, output, mode, cval, origin, 1)

def grey_erosion ( input , size = None , footprint = None , structure = None , output = None , mode = 'reflect' , cval = 0.0 , origin = 0 ) : if ( ( size is None ) and ( footprint is None ) and ( structure is None ) ) : raise ValueError ( 'size, footprint or structure must be specified' ) return filters . _min_or_max_filter ( input , size , footprint , structure , output , mode , cval , origin , 1 )
calculate a greyscale erosion .