fill_overflow#

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

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

Parameters
  • extent (Box) – Extent.

  • window (Box) – Window from which chip was read.

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

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

Returns

Chip with overflowing regions filled with fill_value.

Return type

np.ndarray