Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgba2rgb(img) is not working as wanted #10

Open
shiquanwang opened this issue Sep 26, 2018 · 0 comments
Open

rgba2rgb(img) is not working as wanted #10

shiquanwang opened this issue Sep 26, 2018 · 0 comments

Comments

@shiquanwang
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant