align_fourier_lsq

jwst.coron.imageregistration.align_fourier_lsq(reference, target, mask=None)[source]

LSQ optimization with Fourier shift alignment.

Parameters:
referencendarray

A 2D (NxK) image to be aligned to.

targetndarray

A 2D (NxK) image to align to reference.

maskndarray or None

A 2D (NxK) image indicating pixels to ignore when performing the minimization. The masks acts as a weighting function in performing the fit.

Returns:
resultsndarray

A 1D vector containing (xshift, yshift, beta) values from LSQ optimization, where xshift and yshift are the misalignment of target from reference and beta is the fraction by which the target intensity must be reduced to match the intensity of the reference.