-
Notifications
You must be signed in to change notification settings - Fork 43
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 more style range options #883
Conversation
large_image/tilesource/base.py
Outdated
output = (output * 65535 / 255).astype(numpy.uint16) | ||
elif dtype == 'float': | ||
output /= 255 | ||
print(axis, output.shape) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove print statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
I'm curious when |
I suppose I've had a few |
The specific use case is that we have a file with multiple images that are conceptually a matrix of channel, z value (altitude), time value, and xy sample position, all in 16-bit uint format. We want to make a max-merge for each distinct combination other than z. When we specify a style like I think this means we either need to introduce a new term to avoid using the current default (hence |
Yes -- this is a problem where data sources don't actually indicate what their valid range is. You can read EVERY pixel and find the min/max, but that is expensive. You can do this at a low resolution (which is what is currently done), which is only a guess. Some datatypes imply a min/max (uint8 -> [0,255], uint16 -> [0,65535]), but some don't (float). Even then, I've seen data in uint16 which is really uint12 or uint14 with the high bits zeroed. I'm not sure we have a decent general solution. |
All makes sense! Thanks for the explanation! |
No description provided.