The alignment of images is a basic tool for processing of astronomical images. PixInsight has an excellent tool (StarAlignment) for aligning images that works comparing the overlapping areas between the target image and a reference image and trying to find a match between them. Then computes a lineal transformation that converts the geometry of the target image so that it is similar to the reference image.
This usually works very well but it has a few limitations:
- When the images to align have different geometric distortions StarAlignment can not align them because there is not a lineal transformation between them. This usually happens in images taken with short focal lengths.
- When building mosaics, StarAlignment can only match the images when there is a big enough overlapping area. For example, it can not align images from the segmented sensors of professional telescopes.
- When building mosaics, StarAlignment aligns the images by pairs. When a mosaic is formed by many tiles the process is prone to mismatchings caused by accumulating errors.
AlignByCoordinates tries to solve this shortcomings using a different approach to the alignment: Instead of matching an image against other, it requires that the images are plate solved. Knowing the coordinates of each pixel of the image the script can reproject them so the geometries of the images are compatible.
AlignByCoordinates can cope with two kind of geometric distortions:
- Projection distortions: When two images are not centered in the same point they have different projections. The difference in the projections causes that there is not a lineal transformation between them. This effect is stronger in images with short focal length.
The following animation shows an example of this effect. The images have been generated from catalog data and the only geometric distortions are caused by the projection. As can be seen in the animation, the Orion asterism has different distortions in each frame.
- Geometric optical aberrations: The plate solving of astronomical images is usually done supposing that the optical system can be modeled by a Gnomonic projection.
However, many lenses or telescopes don't follow strictly this projection. The images from these optical systems can not be solved with high accuracy using only lineal polynomials. ImageSolver and ManualImageSolver can use higher degree polynomials to model the geometric distortions. AlignByCoordinates can use the distortion model generated by the plate solving process for fixing it when aligning images with different distortions.
As a result, AlignByCoordinates can be used for generating wide field mosaics where the tiles have little or no overlapping and when the tiles have strong distortions caused by short focal lenses.
The instructions for using this script are in this PDF:
AlignByCoordinates.pdf. The contents of this PDF will be available as the online help of the script when it is distributed with PixInsight.
The following animation is used in the documentation of the script but it doesn't work in the PDF:
The following video shows the four corners and the center of 12 images aligned with AlignByCoordinates. The images were taken with 17mm optics and have heavy distortions:
http://www.youtube.com/watch?v=ARiKCITz1lIUPDATED VERSION 0.2