def tophat(image, selem, out=None, mask=None, shift_x=False, shift_y=False):
 return _apply_scalar_per_pixel(generic_cy._tophat, image, selem, out=out, mask=mask, shift_x=shift_x, shift_y=shift_y)

def tophat ( image , selem , out = None , mask = None , shift_x = False , shift_y = False ) : return _apply_scalar_per_pixel ( generic_cy . _tophat , image , selem , out = out , mask = mask , shift_x = shift_x , shift_y = shift_y )
local top-hat of an image .