CellSeg
CellSeg copied to clipboard
Optimized `remove_small_cells`
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.