-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix Cellpose segmentation with masking ROI tables & relabeling #786
Conversation
My new relabeling approach is more robust and should be fine for all real-world cellpose use-cases. But we'll want to offer an abstracted version of this in ngio later, see issue here to track this: #787 |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, it looks good to me.
I don't like that num_labels_tot
is a shared global state. To avoid returning the current number of labels, I would have wrapped segment_ROI
in a small class.
I think this is totally fine for now, this code will be heavily refactored soon anyway when we have ngio
for this task.
Thanks for reviewing it!
Agreed, that will be something to improve on with the ngio refactor. But I'll go with this for the time being :) |
Checklist before merging
CHANGELOG.md