(Astronomical) Image Registration¶
chi2_shift to match images.
A toolkit for registering images of astronomical images containing primarily extended flux (e.g., nebulae, radio and millimeter maps). [*]
There are related packages scattered throughout the internet that do the same thing, but with different features.
The general goal is to align images that look kind of like these:
Given two images, shift the second to match the first and check that they are the same. This notebook also shows examples.
from image_registration import chi2_shift from image_registration.fft_tools import shift xoff, yoff, exoff, eyoff = chi2_shift(image, offset_image, noise, ... return_error=True, upsample_factor='auto') corrected_image2 = shift.shiftnd(offset_image, (-yoff, -xoff))