steinbock icon indicating copy to clipboard operation
steinbock copied to clipboard

Update the CellProfiler pipeline for pixel classification based segmentation

Open nilseling opened this issue 1 year ago • 5 comments

The CellProfiler pipeline used in steinbock does not match the current pipeline in the ImcSegmentationPipeline.

nilseling avatar May 25 '23 10:05 nilseling

Out of curiosity: in what way?

jwindhager avatar May 25 '23 11:05 jwindhager

So steinbock is using the old pipeline where the probability masks were first segmented and then the detected objects were downscaled. This leads to issues that cells are lost if they are smaller than 4 pixels or so.

The pipeline in the newest version of the ImcSegmentationPipeline (version 3) first downscales the pixel probabilities and then performs segmentation. This leads to continuous numbering of cell IDs.

nilseling avatar May 25 '23 11:05 nilseling

Hmm, I can't reproduce this issue anymore. For the test data the cell IDs seem to be continous with the current pipeline. But I remember that there was an issue in the past when reading in segmentation masks that did not contain continous cell IDs. In any case, it would be good to update the pipeline to what the ImcSegmentationPipeline is doing.

nilseling avatar May 25 '23 11:05 nilseling

It appears to me that the only relevant difference between the two pipeline is the Typical artifact diameter parameter, set to 4 in steinbock and 2 in ImcSegmentationPipeline. Ca you possibly confirm that @nilseling

Milad4849 avatar May 25 '23 13:05 Milad4849

No, the two pipelines are conceptually quite different. We can have a look at it together tomorrow

nilseling avatar May 25 '23 13:05 nilseling