Skip to content

fix: clims sliders not aligned with bit depth #152

Description

@gselzer

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)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions