Skip to content

keflavich/image_registration

Repository files navigation

Image Registration Methods for Astronomy

(intended for extended emission, not stellar images!)

Documentation: http://image-registration.rtfd.org

Usage

  • pip install image_registration or
  • git clone https://github.com/keflavich/image_registration
from image_registration import chi2_shift
from image_registration.fft_tools import shift
import image_registration

#Generate Sample Image
image = image_registration.tests.make_extended(100)
offset_image = image_registration.tests.make_offset_extended(image, 4.76666, -12.33333333333333333333333, noise=0.1)

#Get Fused Image
xoff, yoff, exoff, eyoff = chi2_shift(image, offset_image)
corrected_image2 = shift.shiftnd(offset_image, (-yoff, -xoff))

Acknowledgments:

Also implements http://solarmuri.ssl.berkeley.edu/~welsch/public/software/cross_cor_taylor.pro

Zenodo

Bitdeli badge