livecellx.segment.ou_simulator.gen_sc_bg_crop

livecellx.segment.ou_simulator.gen_sc_bg_crop(sc, shape)[source]

generate background for sc by cropping from the sc’s image. For regions belong to single cells, remove cells and fill with gaussian noise.