Author Topic: StarAlignment and Very Wide Fields of View  (Read 5216 times)

Offline twade

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 445
    • http://www.northwest-landscapes.com
StarAlignment and Very Wide Fields of View
« on: 2009 September 16 15:10:13 »
To all,

I've been trying to align seven images I took with a Canon 14mm f/2.8 lens and a Canon 5D2.  Basically, I went through a series of test images at each f-stop, stopping at f/6.3.  I'm going to publish the results so I wanted to take crops of the center "sweet spot" and the corners at each f-stop.  Unfortunately, StarAlignment is "freaking-out" due to the optical aberrations at the corners in the near wide-open images.  The stars are shaped like birds which is quite typical with such a wide-angle lens.  Could someone offer me some suggestions on which parameters to tweak to get more consistent results?

I had to use Maxim DL to loop the images.  I'm hoping PixInsight Standard my have a looping feature in the future so we can test how successful the star alignment phase was carried out.  Keep in mind, this is the first time I've ever had less than stellar results in using StarAlignment, and I'm confident, once I get the parameters tweaked properly, it will produce amazing results.  I know without a doubt it is the odd shaped stars at the corners which are the cause of the misalignments.

Thanks,

Wade

Offline twade

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 445
    • http://www.northwest-landscapes.com
Re: StarAlignment and Very Wide Fields of View
« Reply #1 on: 2009 September 16 22:47:09 »
To all,

It took many iterations, but I finally got a set of values that worked well with the data.

Detection scales = 3
Noise scales = 2
Hot pixel removal = 2
Peak response = 0.35
Maximum distortion = 0.400

Maximum stars = 150
Triangles per star = 12

It seems the "Detection scales" helped the most.  I guess by lowering this value to 3 it got rid of a lot of the fainter distortion patterns.

Juan,

If you would like me to send you this data for testing, I would be more than happy to zip it up and send it to you.  It was definitely a challenging case for StarAlignment.  It was the first time I actually had to tweak the default values.  I knew StarAlignment would perform flawlessly once I gave it the right starting values.

Wade

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: StarAlignment and Very Wide Fields of View
« Reply #2 on: 2009 September 16 23:21:43 »
Good morning!

I also had difficulties aligning images that I took with a 35mm Canon lens. The cause was the lens distortion (barrel type, see http://en.wikipedia.org/wiki/Distortion_(optics)). I was partially able to correct it with Canon's DPP (NR/Lens/ALO tab), but not completely. Star Alignment seems to be unable to handle this type of transformation.

There are a couple of software tools (free and commercial) around to correct for that, but I have not yet tried any of them. Anybody out there that has experience with this?

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: StarAlignment and Very Wide Fields of View
« Reply #3 on: 2009 September 19 04:08:36 »
Hi Wade,

Of course, I am very interested in taking a look at those images. You can upload them to the ftp server, as usual (zipped, please don't use rar as I can't open the files). I am sure this will lead to an improvement, as always happens with your images :) Thank you!

StarAlignment's star matching algorithm is based on triangle similarity. Triangle similarity is invariant to translation, rotation, mirroring and scale change. Note that this covers an affine transformation only partially (since shearing breaks triangle similarity). In addition, I implemented a triangle selection strategy that is much more tolerant to small-scale distortions than the original algorithms (please refer to this thread and skip to the Technical Description and Reference Information section for details). However, large-scale distortion is incompatible with this star matching scheme.

To perform the final image registration, StarAlignment fits a homographic transformation (an eight-parameter transformation, providing for full affine transformations plus chirping and keystoning). However, the current star matching algorithm imposes the limits that I have described above. A homographic projection allows for much more flexible registration tasks in future versions of SA and derived tools, which must implement more sophisticated feature matching algorithms, including non-star-based and non-astronomical applications, as lunar mosaic and panorama generation. In other words, SA is a powerful platform for development of image registration systems; the current SA tool is just an initial stage.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: StarAlignment and Very Wide Fields of View
« Reply #4 on: 2009 September 19 12:50:14 »
Hi,

would a homomorphic transformation adjust for pincushion and barrel type distortions that are common in photographic lenses?

Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: StarAlignment and Very Wide Fields of View
« Reply #5 on: 2009 September 19 16:18:21 »
http://en.wikipedia.org/wiki/Homomorphic_filtering

Homomorphic transformations affect the brightness of the pixels, not the spatial coordinates (see link above for further explanations of this filter).

Affine transformations, by the other hand, are spatial transformations, scale, shifting and rotation, neither may deal with this kind of distortion. I don't know if the other parameters included in a homographic transformation can... but I guess that this problem will need another strategy to be dealt of.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline twade

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 445
    • http://www.northwest-landscapes.com
Re: StarAlignment and Very Wide Fields of View
« Reply #6 on: 2009 September 19 18:13:29 »
Juan,

I have placed the files in the twade directory.  There are seven files named the following:

14mm_StarAlignment_stress_test.z01
14mm_StarAlignment_stress_test.z02
14mm_StarAlignment_stress_test.z03
14mm_StarAlignment_stress_test.z04
14mm_StarAlignment_stress_test.z05
14mm_StarAlignment_stress_test.z06
14mm_StarAlignment_stress_test.zip

Keep in mind, these were tests shots so I would never actually use this particular lens wide-open.  In fact, f/5.6 seems to be the best compromise between required exposure time and lens aberrations.

Wade