def img_as_ubyte(image, force_copy=False):
 return convert(image, np.uint8, force_copy)

def img_as_ubyte ( image , force_copy = False ) : return convert ( image , np . uint8 , force_copy )
convert an image to 8-bit unsigned integer format .