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`
```python
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
<img src="https://upload.wikimedia.org/wikipedia/commons/0/0f/Zenodo_logo.jpg" alt="Zenodo" width="200" style="float:left">
<img src="https://res.cloudinary.com/crunchbase-production/image/upload/c_lpad,h_170,w_170,f_auto,b_white,q_auto:eco/v1397185883/572a01e5ceae5baf6fd82328b810a566.png" alt="Bitdeli badge" width="200" style="float:left">
Raw data
{
"_id": null,
"home_page": "https://image-registration.readthedocs.io/en/latest/",
"name": "image-registration",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Adam Ginsburg",
"author_email": "adam.g.ginsburg@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ab/4c/b0e43c4c2593a90099ff2bd728467951e9be8f616b792470549ea2ba5936/image_registration-0.2.9.tar.gz",
"platform": null,
"description": "Image Registration Methods for Astronomy\n========================================\n(intended for *extended emission*, not stellar images!)\n\n**Documentation:** http://image-registration.rtfd.org\n\n### Usage\n\n- `pip install image_registration` or \n- `git clone https://github.com/keflavich/image_registration`\n\n```python\nfrom image_registration import chi2_shift\nfrom image_registration.fft_tools import shift\nimport image_registration\n\n#Generate Sample Image\nimage = image_registration.tests.make_extended(100)\noffset_image = image_registration.tests.make_offset_extended(image, 4.76666, -12.33333333333333333333333, noise=0.1)\n\n#Get Fused Image\nxoff, yoff, exoff, eyoff = chi2_shift(image, offset_image)\ncorrected_image2 = shift.shiftnd(offset_image, (-yoff, -xoff))\n```\n\n### Requirements:\nInstall the following version of the packages to replicate this repository:\n- FITS_tools==0.2\n- matplotlib==3.4.2\n- astropy==4.2.1\n \nFor the following packages latest version should work:\n- scipy\n- pytest\n\nTo replicate in conda you can use environment.yml given in repository\n\n### Acknowledgments:\n- Borrows heavily from\nhttp://www.mathworks.com/matlabcentral/fileexchange/18401-efficient-subpixel-image-registration-by-cross-correlation/content/html/efficient_subpixel_registration.html\n\n- Replicates much of the functionality of \nhttp://www.astro.ucla.edu/~mperrin/IDL/sources/subreg.pro\n\nAlso implements \nhttp://solarmuri.ssl.berkeley.edu/~welsch/public/software/cross_cor_taylor.pro\n\n\n<img src=\"https://upload.wikimedia.org/wikipedia/commons/0/0f/Zenodo_logo.jpg\" alt=\"Zenodo\" width=\"200\" style=\"float:left\">\n<img src=\"https://res.cloudinary.com/crunchbase-production/image/upload/c_lpad,h_170,w_170,f_auto,b_white,q_auto:eco/v1397185883/572a01e5ceae5baf6fd82328b810a566.png\" alt=\"Bitdeli badge\" width=\"200\" style=\"float:left\">\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Package for registering images with extended emission",
"version": "0.2.9",
"project_urls": {
"Homepage": "https://image-registration.readthedocs.io/en/latest/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9da6bf4a592a90b918ce8188dc05eaba241d57b22e8082a299cc49139e193358",
"md5": "8b9bd02d21bb3e53263765252e63079b",
"sha256": "ad0365bca38d9e2c57d09d8dfa1abcafbfa2fcb3c4ade35c8356ca64721666db"
},
"downloads": -1,
"filename": "image_registration-0.2.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8b9bd02d21bb3e53263765252e63079b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 65564,
"upload_time": "2024-04-14T15:19:29",
"upload_time_iso_8601": "2024-04-14T15:19:29.679479Z",
"url": "https://files.pythonhosted.org/packages/9d/a6/bf4a592a90b918ce8188dc05eaba241d57b22e8082a299cc49139e193358/image_registration-0.2.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ab4cb0e43c4c2593a90099ff2bd728467951e9be8f616b792470549ea2ba5936",
"md5": "d20f487b9f7f665baaf4eafbca976e83",
"sha256": "29d12e282a15da4af6d6cc17d86a2b405c42a900e2f1203f2ee128ee4756503f"
},
"downloads": -1,
"filename": "image_registration-0.2.9.tar.gz",
"has_sig": false,
"md5_digest": "d20f487b9f7f665baaf4eafbca976e83",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 2781825,
"upload_time": "2024-04-14T15:19:32",
"upload_time_iso_8601": "2024-04-14T15:19:32.142053Z",
"url": "https://files.pythonhosted.org/packages/ab/4c/b0e43c4c2593a90099ff2bd728467951e9be8f616b792470549ea2ba5936/image_registration-0.2.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-14 15:19:32",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "image-registration"
}