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
Label layers do not support uint64 in combination colormaps anymore with 0.4.18 #6077
Labels
Comments
This was definitely not intentional @thorstenwagner, thank you for reporting. The good news is the code runs fine in #3308 which we are making a big push on, so hopefully we can get a 2-for-1 fix there (or n-for-1). Sorry about that and we hope to have an update soon! 🙏 |
Thanks for fixing that :-) |
No worries! Do watch out for #6084, although we intend to fix that before 0.5.0. 🤞 |
Czaki
pushed a commit
that referenced
this issue
Oct 17, 2023
The pull request will move the current label color calculation onto the GPU. This is the result of dozens of hours of hacking between @perlman, @jni, and @brisvag. It moves the mapping from label space to 0-1 (which can then be colormapped) to the shader. It also adds hashing in OpenGL for direct color mode, which avoids many of the collisions we were seeing in that mode when mapping labels to 0-1 and then using a custom colormap. Closes #204 (count those digits!!!!) Closes #4384 (which you'll see has been hit by many people � it's a big one) Closes #4864 Closes #4942 Closes #6077 Closes #6010 This converts labels to np.float32, so labels above `2**23` can be aliased together. But this limitation seems preferable to existing issues. - [X] Implement shader for 3D label layers (ISO categorical) - [X] Implement shader for 2D label layers - [X] Fix the CPU-based color computation (for paint color preview & layer preview) - [X] 3D iso categorical view - [x] Test function of directly mapped colors - [ ] Address uint64 labels. Labels are currently converted to float32 - [ ] Factor `seed` into a `uniform` - [X] This change requires a documentation update - [X] Additional tests added to confirm consistent coloring between GPU & CPU - [X] Manual testing of the various examples (`examples/**labels*.py`) --------- Co-authored-by: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu> Co-authored-by: Lorenzo Gaifas <brisvag@gmail.com> Co-authored-by: Juan Nunez-Iglesias <jni@fastmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
This code just runs fine in napari 0.4.17:
However, it crashes with napari 0.4.18
Was there a breaking change in 0.4.18?
Best,
Thorsten
The text was updated successfully, but these errors were encountered: