Skip to content

Allow to have stitch_threshold=0 and to shuffle labels - #90

Merged
gletort merged 5 commits into
mainfrom
stitch-bug
Sep 17, 2026
Merged

gletort merged 5 commits into
mainfrom
stitch-bug

Conversation

@gletort

@gletort gletort commented Sep 17, 2026

Copy link
Copy Markdown
Member

In 3D stack, in 2D+stitch_mode, in cellpose, stitch_threshold cannot be 0. Changed it so that it can be 0 and in that case it will segment the stack as a list of 2D images.

For the display, when there are lot of labels (if stithc_threshold=0 and it's a 3D stack, it's likely), in the label image, labels are sorted (close values are close to each other). The LUT are limited ot 256 values, so close values will have close colors as soon as there are more than 256 labels. So added an option (in imglib2-cellpose) and in the GUI in this plugin to shuffle the labels after cellpose's run, allowing more contrast between neighbor objects.

@gletort
gletort merged commit 8c2c16f into main Sep 17, 2026
1 check passed
@gletort
gletort deleted the stitch-bug branch September 17, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant