What is Astroalign and how does it work?
masterAstroalign is a Python module designed to register (align) two stellar astronomical images, particularly when World Coordinate System (WCS) information is unavailable.
Instead of using generic point-feature matching (which often fails on stellar images due to the lack of stable structure), Astroalign uses asterism matching. It identifies similar 3-point asterisms (triangles) in both images to estimate the affine transformation between them.
Key characteristics:
- Robustness: Because it relies on geometric patterns (triangles), it is less affected by differences in point-spread function (PSF), seeing, or atmospheric conditions.
- Limitations: It may struggle with images of extended objects (few point-like sources), very crowded fields, or images containing a large number of hot pixels.
- Hot Pixel Mitigation: If hot pixels cause incorrect registration, it is recommended to use a cosmic-ray remover like
CCDProc's cosmic-ray removerbefore using Astroalign.