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

fix: clims sliders not aligned with bit depth #152

Open
gselzer opened this issue Mar 12, 2025 · 1 comment
Open

fix: clims sliders not aligned with bit depth #152

gselzer opened this issue Mar 12, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@gselzer
Copy link
Collaborator

gselzer commented Mar 12, 2025

If I put an unsigned 8-bit dataset into ndv, the range of the clims slider would ideally be [0, 255], but they are hardcoded to [0, 65535].

There's TODOs (e.g. here) about this. but not a concrete issue that I found.

I think this is best solved by a LutView.set_extremes() method (naming suggestions welcome) that defines the min and max - the histograms would benefit from this as well (as I added something similar to the histogram canvas in #146)

@gselzer gselzer added the enhancement New feature or request label Mar 12, 2025
@gselzer gselzer self-assigned this Mar 12, 2025
@gselzer
Copy link
Collaborator Author

gselzer commented Mar 12, 2025

Forgot to add an image in action:

Image

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

1 participant