Skip to contents

Returns a list with the padded window (x_off, y_off, x_size, y_size) and the per-side pad actually applied (pad_left, pad_top, pad_right, pad_bottom). Kernels trim by these values to recover the unpadded output.

Usage

chunk_window_with_halo(cg, ...)

Arguments

cg

A ChunkGrid.

...

Passed to methods. The ChunkGrid method takes the 0-based unpadded chunk window in pixels: x_off, y_off, x_size, y_size.

Value

A list with the padded window and per-side pads.