pynrc.maths.image_manip.shift_subtract¶
- pynrc.maths.image_manip.shift_subtract(params, reference, target, mask=None, pad=False, interp='cubic', shift_function=<function fshift>)[source]¶
Shift and subtract image
Subpixel shifts for input into least-square optimizer.
- Parameters
params (tuple) – xshift, yshift, beta
reference (ndarray) – See align_fourierLSQ
target (ndarray) – See align_fourierLSQ
mask (ndarray, optional) – See align_fourierLSQ
pad (bool) – Should we pad the array before shifting, then truncate? Otherwise, the image is wrapped.
interp (str) – Interpolation for fshift function. Default is ‘cubic’. Options are ‘linear’, ‘cubic’, or ‘quintic’.
shift_function (func) – which function to use for sub-pixel shifting
- Returns
ndarray – 1D array of target-reference residual after applying shift and intensity fraction.