extraction.core.functions.trap.background_max5

background_max5(cell_masks, trap_image)[source]

Finds the mean of the maximum five pixels of the background.

Parameters
cell_masks: 3d array

Segmentation masks for cells.

trap_image:

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