CellProfiler-plugins icon indicating copy to clipboard operation
CellProfiler-plugins copied to clipboard

Add "Remove Edge Masks" functionality to RunCellpose plugin

Open jenna-tomkinson opened this issue 2 years ago • 1 comments

As I was working with the RunCellpose plugin in CellProfiler, I noticed that there was a function missing that is normally available in the IdentifyPrimaryObjects and IdentifySecondaryObjects modules, which is to remove the objects that have pixels touching the edge of the image.

Cellpose 2.0 does have this functionality, called remove_edge_masks, within their documentation. It would be nice to have this ability within the module to remove the cells on the edge when wanting to proceed with further analysis like feature extraction.

jenna-tomkinson avatar Oct 19 '22 15:10 jenna-tomkinson

There’s an option in the FilterObjects module where you can filter using “Image or mask border” that does what you need.

lauracmurphy avatar Oct 27 '22 16:10 lauracmurphy