Replies: 1 comment 1 reply
-
Hi, Thanks for question. Yes, I believe that choosing a list of x, y pairs can affect the result. The length itself is not the problem, but the opportunity for more false positives is. It is advisable that you don't use too many reference star positions, usually a dozen or so common bright spots should be enough. If you use more, you risk confusing the algorithm because it will have a higher chance to pick similar (false) asterisms, simply because there are more reference stars. When you pass an image, astroalign will pick the stars according to their brightness, and I would suggest you do the same when passing x, y pair lists. Also as you can see here the list is capped at Having said that... the algorithm will finally decide if there's a match if it can fit at least 10 triangle pairs between the images. Your example seems like it should work and it makes me curious as why it doesn't 🤔. I will need to run this line by line to check where it's not working exactly. I will do some experiments and come back if I find more. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Hopefully someone can shine a light on this one for me.
I've been using astroalign.find_transform() for a while with general success, but sometimes it fails to find a solution.
Erroring out with
List of matching triangles exhausted before an acceptable transformation was found
I noticed it happening with a couple of images that were closely aligned already, and began to wonder why it didn't like them.
I'm comparing a calculated set of star locations with the locations captured in an image.
This example set of star locations fails...
If I divide all the values in those two lists by 10, it works.
Is there a limit to coordinate sizes? Or something I should do to allow the original values to be solved?
For my purposes I can probably live with scaling the values down, solving and scaling the transform back up, but it feels like I'm missing something...
Running astroalign 2.4.2 on Raspbian GNU/Linux 10 (buster)
Thanks in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions