torch / image

An Image toolbox for Torch.
Other
208 stars 141 forks source link

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

Open gentlegy opened 8 years ago

gentlegy commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

Hi Soumith,

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

Best, Yang