fill_overflow#

fill_overflow(bbox: Box, window: Box, chip: ndarray, fill_value: int = 0) ndarray[source]#

Where chip’s window overflows bbox, fill with fill_value.

Parameters
  • bbox (Box) – Bounding box.

  • window (Box) – Window corresponding to the chip.

  • chip (np.ndarray) – (H, W, C) array.

  • fill_value (int, optional) – Value to set overflowing pixels to. Defaults to 0.

Returns

Chip with overflowing regions filled with fill_value.

Return type

np.ndarray