Internal shift helper used by fill_alpha_gaps(). It returns a
same-size alpha matrix shifted by integer row and column offsets, filling
newly exposed pixels with zero instead of wrapping. This lets the gap-filling
scan compare pixels a fixed distance away on opposite sides of a candidate
gap.
offset_alpha(alpha, row_offset, col_offset)Numeric alpha matrix with the same dimensions as alpha.
Numeric alpha matrix.
Integer row offset. Positive values sample from rows below each output pixel.
Integer column offset. Positive values sample from columns to the right of each output pixel.