quatrope / astroalign

A tool to align astronomical images based on asterism matching
MIT License
140 stars 44 forks source link

issue aligning astrophotography images #54

Closed martinberoiz closed 3 years ago

martinberoiz commented 4 years ago

I'm seeing this problem too. Astroalign worked remarkably well when I was using it on crappy .cr2 images from an old Rebel, but now I have a Sony Alpha with a much more sensitive sensor, and when I try astroalign it always fails with MaxIterError. I'll attach a couple of sample images. _find_sources() on the two arrays I'm trying to align returns shapes (3860, 2) and (3990, 2) if I use raw .arw, or (10719, 2) and (11023, 2) for JPG. Github won't let me attach the raw files so here are two JPGs (not great astro images, just something I'm using to test aligning).

dsc00938

dsc00937

Originally posted by @akkana in https://github.com/toros-astro/astroalign/issues/39#issuecomment-688484363

akkana commented 4 years ago

I'm using just the green channel to align. At least that's what my intent is -- no guarantees that my code is right. :-) I'm very new to this. But the same code worked on .cr2 images from the Canon. Here's the code I'm using: starstack.py register() checks for rgb and calls singlelayer() which returns img[:, :, 1].

martinberoiz commented 3 years ago

Hello Akkana,

I made a test with the images provided and it seems that the alignment is working now with version 2.4.

Screen Shot 2021-03-25 at 4 14 00 PM

If you still have problems, please feel free to open a new issue, I will go ahead and close this now.