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

implement the cell diameter parameter #1

Open
marius10p opened this issue Mar 13, 2021 · 1 comment
Open

implement the cell diameter parameter #1

marius10p opened this issue Mar 13, 2021 · 1 comment

Comments

@marius10p
Copy link

The default Cellpose models are optimized for an average cell diameter of 30 pixels. Results can be really bad if the cell diameter is significantly larger or smaller than this.

@yxdragon
Copy link
Member

yxdragon commented Mar 15, 2021

did you mean the image should be zoomed to make sure the object 30 diameter? then input the models?

def get_flow(nets, img, cn=[0,0], sample=1, size=512, tile=True, work=1, callback=progress)

  • nets: the nets loaded upon.

  • img: the image to process

  • cn: the cytoplasm and nucleus channels

  • sample: if not 1, we scale it. (only avalible when tile==True)

  • size: when tile==True, this is the tile size, when tile==False, we scale the image to size.

  • tile: if True, method try to process image in tiles. else resize the image.

  • work: open multi-thread to process the image. (GPU not recommend)

now some parameter added.

in tile mode: the input image would scale by sample factor, then use the size as tile.

in no tile mode: sample disabled, the input image would be scale to size x size.

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

No branches or pull requests

2 participants