Open shiquanwang opened 5 years ago
def rgba2rgb(img): return img[:,:,:3]*np.expand_dims(img[:,:,3],2)
This function does not remove the alpha channel but multiplies RGB channel with the alpha channel in np.uint8 range. This seems a bug.
This function does not remove the alpha channel but multiplies RGB channel with the alpha channel in np.uint8 range. This seems a bug.