https://github.com/aymgal/astroalign
A tool to align astronomical images based on asterism matching
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.5%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
A tool to align astronomical images based on asterism matching
Basic Info
- Host: GitHub
- Owner: aymgal
- License: mit
- Language: Python
- Default Branch: master
- Size: 1.14 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of quatrope/astroalign
Created over 7 years ago
· Last pushed over 7 years ago
https://github.com/aymgal/astroalign/blob/master/
*** [](https://travis-ci.org/toros-astro/astroalign) [](https://codecov.io/github/toros-astro/astroalign) [](http://astroalign.readthedocs.org/en/latest/?badge=latest) [](https://zenodo.org/badge/latestdoi/49095023) [](https://pyup.io/repos/github/toros-astro/astroalign/) [](https://pyup.io/repos/github/toros-astro/astroalign/) **ASTROALIGN** is a simple package that will try to align two stellar astronomical images, especially when there is no WCS information available. It does so by finding similar 3-point asterisms (triangles) in both images and deducing the affine transformation between them. General registration routines try to match feature points, using corner detection routines to make the point correspondence. These generally fail for stellar astronomical images, since stars have very little stable structure and so, in general, indistinguishable from each other. Asterism matching is more robust, and closer to the human way of matching stellar images. Astro align can match images of very different field of view, point-spread function, seeing and atmospheric conditions. It may not work, or work with special care, on images of extended objects with few point-like sources or in very crowded fields. You can find a Jupyter notebook example with the main features at [http://toros-astro.github.io/astroalign/](http://toros-astro.github.io/astroalign/). *** ## Installation Using setuptools: $ pip install astroalign or from this distribution with $ python setup.py install *** ## Usage example >>> import astroalign as aa >>> aligned_image = aa.register(source_image, target_image) In this example `source_image` will be interpolated by a transformation to coincide pixel to pixel with `target_image` and stored in `aligned_image`. If we are only interested in knowing the transformation and the correspondence of control points in both images, use `find_transform` will return the transformation in a scikit-image SimilarityTransform object and a list of stars in source with the corresponding stars in target. >>> transf, (s_list, t_list) = aa.find_transform(source, target) `source` and `target` can each either be the numpy array of the image, or an iterable of (x, y) pairs of star positions on the image. The returned `transf` object is a scikit-image [`SimilarityTranform`](http://scikit-image.org/docs/dev/api/skimage.transform.html#skimage.transform.SimilarityTransform) object that contains the transformation matrix along with the scale, rotation and translation parameters. `s_list` and `t_list` are numpy arrays of (x, y) point correspondence between `source` and `target`. `transf` applied to `s_list` will approximately render `t_list`. *** *This package is inspired by the [astrometry.net](http://astrometry.net) program* TOROS Dev Team
Owner
- Name: Aymeric Galan
- Login: aymgal
- Kind: user
- Repositories: 6
- Profile: https://github.com/aymgal
PhD in Observational Cosmology Currently postdoc at LASTRO, EPFL.
***
[](https://travis-ci.org/toros-astro/astroalign)
[](https://codecov.io/github/toros-astro/astroalign)
[](http://astroalign.readthedocs.org/en/latest/?badge=latest)
[](https://zenodo.org/badge/latestdoi/49095023)
[](https://pyup.io/repos/github/toros-astro/astroalign/)
[](https://pyup.io/repos/github/toros-astro/astroalign/)
**ASTROALIGN** is a simple package that will try to align two stellar astronomical images, especially when there is no WCS information available.
It does so by finding similar 3-point asterisms (triangles) in both images and deducing the affine transformation between them.
General registration routines try to match feature points, using corner
detection routines to make the point correspondence.
These generally fail for stellar astronomical images, since stars have very
little stable structure and so, in general, indistinguishable from each other.
Asterism matching is more robust, and closer to the human way of matching stellar images.
Astro align can match images of very different field of view, point-spread function, seeing and atmospheric conditions.
It may not work, or work with special care, on images of extended objects with few point-like sources or in very crowded fields.
You can find a Jupyter notebook example with the main features at [http://toros-astro.github.io/astroalign/](http://toros-astro.github.io/astroalign/).
***
## Installation
Using setuptools:
$ pip install astroalign
or from this distribution with
$ python setup.py install
***
## Usage example
>>> import astroalign as aa
>>> aligned_image = aa.register(source_image, target_image)
In this example `source_image` will be interpolated by a transformation to coincide pixel to pixel with `target_image` and stored in `aligned_image`.
If we are only interested in knowing the transformation and the correspondence of control points in both images, use `find_transform` will return the transformation in a scikit-image SimilarityTransform object and a list of stars in source with the corresponding stars in target.
>>> transf, (s_list, t_list) = aa.find_transform(source, target)
`source` and `target` can each either be the numpy array of the image, or an iterable of (x, y) pairs of star positions on the image.
The returned `transf` object is a scikit-image [`SimilarityTranform`](http://scikit-image.org/docs/dev/api/skimage.transform.html#skimage.transform.SimilarityTransform) object that contains the transformation matrix along with the scale, rotation and translation parameters.
`s_list` and `t_list` are numpy arrays of (x, y) point correspondence between `source` and `target`. `transf` applied to `s_list` will approximately render `t_list`.
***
*This package is inspired by the [astrometry.net](http://astrometry.net) program*
TOROS Dev Team