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

[Bug] Segmentation Id with 2 ** 32 - 1 is rendered completely white #7247

Open
MichaelBuessemeyer opened this issue Aug 3, 2023 · 0 comments

Comments

@MichaelBuessemeyer
Copy link
Contributor

MichaelBuessemeyer commented Aug 3, 2023

Context

When having a segmentation layer with uint32 or uint64 the segment id 2 ** 32 - 1 is rendered completely white (also overwriting the color layer), as this value is reserved as EMPTY_KEY_VALUE for the cuckoo hashing table.
l4_sample__3584_3584_1024__PLANE_XY

Discussion in slack

Expected Behavior

The segment should be rendered as usual. To fix this, I propose to set the EMPTY_KEY_VALUE = 0 as 0 means eraser for segmentation layers anyway. But EMPTY_KEY_VALUE = 0 should only be set for the custom color cuckoo hash table, not for the once used for color layers.

Current Behavior

See image above.

Steps to Reproduce the bug

  1. Open a dataset with segmentation layer uint32 (e.g. l4_sample)
  2. Set the segmentation id manually to 2 ** 32 - 1 = 4294967295 and draw around.
  3. The drawn area should be completely white everywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant