-
Notifications
You must be signed in to change notification settings - Fork 398
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
single pixel outlier #516
Comments
On the jupyter notebook version I have a line in my code setting a minarea=100 and then It takes care of impossibly small cells for me. Hope this helps! |
@mayishazn I tried this method but it didn't work. The single pixel belongs to the big label to the right, which means that they are one large label, so the single pixel can not filter by its size. |
This is exactly the issue I'm having: single pixels belonging to a neighboring big cell. Has anyone found a solution? |
It is 2D segmentation using the cyto option. |
As suggested by @mrariden I thought to contribute my experience with the similar issue :) I'm experiencing an issue with a model to recognise DAPI-stained nuclei in 2D images. If a certain mask is affected, it is correctly generated to mark a nucleus - but then, there is one more pixel, completely detached from the original mask, that Cellpose considers as a part of this mask as well. The issue already happens at the standard settings of This issue seems to be restricted to several versions (including the most current ones) of the model - earlier versions do not have this problem. I'm attaching some screenshots below for you, as well as attaching the model and a sample image (ZIP because the file types were not allowed). Here's another example of a mask from a model with |
Hey, I just wanted to bring up this issue again and ask if there are any plans to implement this post-processing for connected components in the future? |
we can add it as an optional post-processing step, a PR is welcome |
Hi there,
When I segment polyonal cells using Cellpose, I found some single pixel outlier.
Like in this labeled image, that pixel has the same label ID that the brown big cell to the right. When I processed this labeled image in LabelsToROIs plugin (https://github.com/ariel-waisman/LabelsToROIs), this single pixel would be recognized as one cell, which will affect cell size calculation.
We suspect this is a glitch of Cellpose. Generally, it's not a big problem, but I think you should know.
Does anyone faced this situation?
Justine Jiao
The text was updated successfully, but these errors were encountered: