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

Is there any way to have image's alpha channel to support the transparent #180

Open
gentlegy opened this issue Aug 4, 2016 · 2 comments

Comments

@gentlegy
Copy link

gentlegy commented Aug 4, 2016

Hi developer,

I am newbie in torch community. I am looking for an image library in torch to support 4 channel images. It looks like image library can only deal with 1 or 3 channel images. Are there other options in torch could be used? If I want to add this capacity to the image library, what should I do?

Best,
Yang

@soumith
Copy link
Member

soumith commented Aug 4, 2016

you could look at the image.loadPng function in init.lua , which will link to the C file https://github.com/torch/image/blob/master/generic/png.c

Might have to make changes to both.

@gentlegy
Copy link
Author

gentlegy commented Aug 4, 2016

Hi Soumith,

Thanks for your fast response. I will take a look at both files.

Best,
Yang

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

2 participants