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

x/image/tiff: add 32bit float grayscale support #38252

Open
ryn1x opened this issue Apr 5, 2020 · 3 comments
Open

x/image/tiff: add 32bit float grayscale support #38252

ryn1x opened this issue Apr 5, 2020 · 3 comments
Labels
FeatureRequest NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@ryn1x
Copy link

ryn1x commented Apr 5, 2020

Please add support for 32bit float grayscale tiff images. This is a common format in scientific and medical imaging.

@gopherbot gopherbot added this to the Unreleased milestone Apr 5, 2020
@andybons andybons added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 6, 2020
@stevekuznetsov
Copy link

This would be really nice! As it is, doing image manipulations with scientific data is basically impossible with Go from what I can tell.

@rngoodner
Copy link

I have created a small package to address this shortcoming until the feature is added. It has met all my requirements so far and is written in pure Go with no external dependencies. https://pkg.go.dev/github.com/rngoodner/gtiff

@bamnet
Copy link

bamnet commented May 18, 2022

AFAICT there's not a great candidate to represent a 32 bit greyscale image today, I think image will need to introduce a new Gray32 type too here in addition to the decoding work.

My use case - trying to parse some GeoTIFF data. I'm very hesitant to copypasta the entire tiff decoding logic and make the few tweaks to support 32 bit images in my local codebase, but I think that's the best path given all the very clever edge cases the existing code handles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

7 participants