Package for registering images with extended emission
Project description
Image Registration Methods for Astronomy
(intended for extended emission, not stellar images!)
Documentation: http://image-registration.rtfd.org
Usage
pip install image_registration
orgit 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))
Requirements:
Install the following version of the packages to replicate this repository:
- FITS_tools==0.2
- matplotlib==3.4.2
- astropy==4.2.1
For the following packages latest version should work:
- scipy
- pytest
To replicate in conda you can use environment.yml given in repository
Acknowledgments:
-
Borrows heavily from http://www.mathworks.com/matlabcentral/fileexchange/18401-efficient-subpixel-image-registration-by-cross-correlation/content/html/efficient_subpixel_registration.html
-
Replicates much of the functionality of http://www.astro.ucla.edu/~mperrin/IDL/sources/subreg.pro
Also implements http://solarmuri.ssl.berkeley.edu/~welsch/public/software/cross_cor_taylor.pro
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file image_registration-0.2.9.tar.gz
.
File metadata
- Download URL: image_registration-0.2.9.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d12e282a15da4af6d6cc17d86a2b405c42a900e2f1203f2ee128ee4756503f |
|
MD5 | d20f487b9f7f665baaf4eafbca976e83 |
|
BLAKE2b-256 | ab4cb0e43c4c2593a90099ff2bd728467951e9be8f616b792470549ea2ba5936 |
File details
Details for the file image_registration-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: image_registration-0.2.9-py3-none-any.whl
- Upload date:
- Size: 65.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0365bca38d9e2c57d09d8dfa1abcafbfa2fcb3c4ade35c8356ca64721666db |
|
MD5 | 8b9bd02d21bb3e53263765252e63079b |
|
BLAKE2b-256 | 9da6bf4a592a90b918ce8188dc05eaba241d57b22e8082a299cc49139e193358 |