Skip to content

Missing most cells in sparsely populated image [BUG] #645

@binghama

Description

@binghama

I have a sparsely-populated image of a membrane marker, which only binds to a few cells in the image. There is a low level of background from all the surrounding cells. When I ran segmentation using the built-in "cyto" model, it only segmented the cells with a much lower, background intensity and missed most of the cells I was actually trying to segment. I assumed this may be due to some normalization process where my brighter-than-background signal is being classified as noise and therefore is ignored during segmentation. If so, it there a way to disable this normalization step?

Here's what I did:
Ran the following on the command line with my one attached input image (grayscale, single channel tif):
python -m cellpose --dir /gpfs/gsfs12/users/Zhaolab/4_Picasso-Mouse/2_ROIcrop/tumor_ex_membrane/ --pretrained_model cyto --chan 0 --chan2 0 --diameter 0. --save_tif --verbose --no_npy

I've attached the input image, the output mask file from cellpose, and an overlay I made in napari that visualizes how several bright membranes were missed (called CD8_overlay.png) as a zip.

Thanks in advance.

CP_issue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions