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

Contrast limit should follow the datatype of the dataset #117

Open
edyoshikun opened this issue Apr 19, 2023 · 1 comment
Open

Contrast limit should follow the datatype of the dataset #117

edyoshikun opened this issue Apr 19, 2023 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers NGFF OME-NGFF (OME-Zarr format)

Comments

@edyoshikun
Copy link
Contributor

Current datasets use the channel_name to determine the contrast limits of each dataset. For datasets that are not specified in the dictionary or do not match the channel_name string exactly it will default the settings for 0-65536. For example, if my dataset's channel name is Phase 3D instead of Phase3D (note the space), the clims are set as mentioned above truncating the data, instead of floating points.

The default behavior, if the channel name is not found in the preset dictionary, should use the dataset's datatype.

@edyoshikun edyoshikun self-assigned this Apr 19, 2023
@edyoshikun
Copy link
Contributor Author

One interesting behavior is that if you minimize the napari window and then maximize, the contrast limit re-adjusts to float.

@ziw-liu ziw-liu added bug Something isn't working NGFF OME-NGFF (OME-Zarr format) labels Apr 20, 2023
@ziw-liu ziw-liu added the good first issue Good for newcomers label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers NGFF OME-NGFF (OME-Zarr format)
Projects
None yet
Development

No branches or pull requests

2 participants