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

Add support for multichannel images #600

Open
IgorX2 opened this issue Feb 25, 2016 · 3 comments
Open

Add support for multichannel images #600

IgorX2 opened this issue Feb 25, 2016 · 3 comments

Comments

@IgorX2
Copy link
Contributor

IgorX2 commented Feb 25, 2016

By default, DIGITS converts RGBA images to RGB. It would be useful to add support for 4-channel PNG (or maybe TIFF) images. Most of the code for 4-channel PNG images is already there.

I tried with modifications to the image.py in utils, but the modifications need to be done in other places too. I can add this functionality if someone points me to the files that need to be modified for this to be done as simply as possible.

@lukeyeager
Copy link
Member

Supporting 4-channel image data might not take too much work. One complication is that we'd need to disable JPEG encoding when saving to LMDBs. Unfortunately, I don't have time to scope it all out right now.

FYI, eventually we want to accept many more data types with something like #197 (comment).

@lukeyeager
Copy link
Member

@jmancewicz you were looking into this last week, right? Any updates?

@jmancewicz
Copy link
Contributor

The change to image_to_array to also accept 4 channels was added with #1188

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

No branches or pull requests

3 participants