g_shift_slice.Rd
Given xpad = g_pad(x, h), returns the view of x's shape offset by (dy, dx) pixels, dy/dx in [-h, h]. Rows are y, columns are x.
xpad = g_pad(x, h)
x
dy
dx
[-h, h]
g_shift_slice(xpad, dy, dx, out_nrow, out_ncol, h)
Padded matrix.
Integer offsets in pixels.
Dimensions of the unpadded matrix.
Pad width used to build xpad.
xpad
An out_nrow x out_ncol matrix.
out_nrow x out_ncol