CellSeg icon indicating copy to clipboard operation
CellSeg copied to clipboard

Optimized `remove_small_cells`

Open ajinkya-kulkarni opened this issue 1 year ago • 0 comments

Now creates a boolean mask of cells with sizes above the threshold using sizes > self.threshold, and then uses np.isin() with the invert=True option to create a mask of cells that should be set to zero. Finally, it sets those cells to zero in the original mask array using boolean indexing.

ajinkya-kulkarni avatar Apr 20 '23 13:04 ajinkya-kulkarni