-
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
Save cell center points in _seg.py #496
Comments
Update: Current (working) workaround for recalculating center points to plots, although I am not sure this will be correct always since it isn't calculated in the same way as in CellPose from what I can tell.
|
hey @FrickTobias I think there are several different ways to compute centers so we aren't going to support a specific function, but we could return the cell centers in the |
If that would be possible that would be great! |
Another workaround may be like this:
Hope that helps. |
hi, I used a very similar workaround and used ndimage center of mass function. My problem is that even if cellpose masks are detected well - showing up in different colors on the tiff image, when masks are connected to each other - only 1 center of mass is detected. So I really would be in a favor of a ready function builder inside cellpose - to take their centers. ANyone else had that problem - maybe I could use someones else hack? |
Hi, some update to the issue raised above: |
@rocketeer1998 Minor point: you may want to pass |
I was wondering if it would be possible to save more metadata about cells.
I am in need of cell center points for downstream computation and they are already calculated as far as I can understand.
Current workaround
Right now I am trying to do something based on a modification of
masks_to_flows_cpu()
Actual question
Would it be possible to save this in the output _seg.py files and load it into
dat['centers']
? Or possibly include a function for likecalculate_centers()
?The text was updated successfully, but these errors were encountered: