extraction.core.functions.trap.imBackground

imBackground(cell_masks, trap_image)[source]

Find the median background (pixels not comprising cells) from trap_image.

Parameters
cell_masks: 3d array

Segmentation masks for cells

trap_image:

The image (all channels) for the tile containing the cell.