pad_to_window_size# pad_to_window_size(chip: ndarray, window: Box, bbox: Box, fill_value: int) → ndarray[source]# Where chip’s window overflows bbox, pad chip with fill_value. Parameters chip (np.ndarray) – (H, W[, C]) array. bbox (Box) – Bounding box. window (Box) – Window corresponding to the chip. fill_value (int, optional) – Value to pad with. Defaults to 0. Returns Chip of size equal to window size with edges padded with fill_value where needed. Return type np.ndarray