cellpose icon indicating copy to clipboard operation
cellpose copied to clipboard

Distributed module over-merging labels in dense regions

Open vbrow29 opened this issue 9 months ago • 0 comments

I have been using the distributed module to run nuclei segmentation on a large light-sheet microscopy dataset. It mostly works well, but I noticed when quantifying morphological features for each nucleus that I see fewer nuclei centroids in the region between chunks (see below).

Image

I dug a bit and found that the merge-relabeling step tends to over-merge nuclei, especially in dense regions (see before and after relabeling images below):

Image

Image

I've attempted to implement a solution to only merge labels if their centroid-centroid distance is below some threshold and that seems to help, but I'm wondering if there is a better way to go about this. Probably a question for @GFleishman ?

I plan to use this module extensively so I'm open to testing any potential solutions or improvements. Thanks!

vbrow29 avatar Apr 22 '25 20:04 vbrow29