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] normalisation problem? #1041

Open
TomPJWyatt opened this issue Nov 4, 2024 · 0 comments
Open

[BUG] normalisation problem? #1041

TomPJWyatt opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TomPJWyatt
Copy link

I couldn't get the cellpose 'nuclei' model to work well on images with only a few nuclei (which were otherwise clear and looked 'easy' to segment). I noticed this happened when nuclei took up around less than 1% of the image. That lead me to find the problem is solved by changing the normalisation...

The default normalisation in cellpose seems to be without clipping. I.e. you subtract the 1st percentile and divide by (99th - 1st percentile). In images with few nuclei this results in an image with amplified noise and minimum pixel value <<0 and a maximum pixel value >>1. This seems to result in a bad segmentation, whereas if I did exactly the same but clipped the image at 0 and 1 the segmentation was good. This didn't effect segmentations of several images with many nuclei that I tried.

So I'm wondering if the normalisation should include clipping? It seems an odd choice to normalise without clipping but maybe I'm missing something?

@TomPJWyatt TomPJWyatt added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant