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

Support loading PNG & other image types from ByteTensors #194

Open
genixpro opened this issue Oct 1, 2016 · 1 comment
Open

Support loading PNG & other image types from ByteTensors #194

genixpro opened this issue Oct 1, 2016 · 1 comment

Comments

@genixpro
Copy link

genixpro commented Oct 1, 2016

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

@genixpro genixpro changed the title Support loading PNG & other image types from tensors Support loading PNG & other image types from ByteTensors Oct 1, 2016
@nibrahim
Copy link

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.

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