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

How to reader and decoder 16 bits image? #3275

Open
marcelovizoni opened this issue Aug 23, 2021 · 5 comments
Open

How to reader and decoder 16 bits image? #3275

marcelovizoni opened this issue Aug 23, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@marcelovizoni
Copy link

I'm trying to read 16 bit png images, but the decoder returns 8 bit image. How can I read and decode 16bit images? even if it's in exr format

@szalpal szalpal self-assigned this Aug 23, 2021
@szalpal
Copy link
Member

szalpal commented Aug 23, 2021

Hi @marcelovizoni !

Unfortunately, DALI currently does not support 16 bit images. This topic has been raised before, thus I'll put this issue on our priority list and update status in this issue. Meanwhile, please refer to #2827 should you like a possible solution, that might work for you now.

@szalpal szalpal added the enhancement New feature or request label Aug 23, 2021
@timcogan
Copy link

This feature would be greatly appreciated. I was hoping to use DALI for decoding 16-bit J2K images.

@JanuszL
Copy link
Contributor

JanuszL commented Feb 1, 2022

Hi @timcogan,

The decoding itself is just part of the limitations. Other DALI operators also don't support 16-bit images, so we plan to extend decoders and operators at the same time. Before that, we want to have a good use case that would allow us to prioritize our effort.
Can you share what workflow/use case you have in mind?

@timcogan
Copy link

timcogan commented Feb 1, 2022

Hi, @JanuszL, thanks for your response. My use case is working with J2K compressed medical images. I have medical image files (i.e. DICOMs) that use J2K to reduce the file size from around ~500MB to ~50MB, but decoding these images can take a fair amount of time on CPUs.

@JanuszL
Copy link
Contributor

JanuszL commented Feb 1, 2022

Hi @timcogan,

For medical images, you may consider cuCIM, as it provides the ability to provide slinging window reading pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants