torch / image

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

Support loading PNG & other image types from ByteTensors #194

Open genixpro opened 8 years ago

genixpro commented 8 years ago

I would like to see functions like image.decompressJPG(tensor, [depth, tensortype]), except for PNG and other image types.

Preferably, a generic function which can load any image type. I don't want to save my image to a file just so I can use image.load

nibrahim commented 6 years ago

This does exist for PNG atleast. You can see it here https://github.com/torch/image/blob/master/init.lua#L181. I've used it too and can confirm that it works.