Author Topic: Problem with Merging simple Mosaic  (Read 8339 times)

Offline fneyer

  • Newcomer
  • Posts: 31
Problem with Merging simple Mosaic
« on: 2012 April 07 13:04:17 »
Hi PixInsight Experts,

I have problems to merge a two-frame mosaic with 'high accuracy'. What I want to do is the following:
- Generate starfield with StarGenerator
- Align both mosaic parts to the starfield
- Merge both mosaic parts to a single image


Now whatever interpolation algorithm I use there are always distortion errors (in the order of 2-6 pixels). Since my images were taken with a TEC140 APO, its dedicated FF, and an STL11k, the field only has minor distortions (not as perfect as with the FSQ106 but better than with any other scope I used before). So my question is if anyone can manage to get this done with PixInsight.

If you would like to try, here are the files:
http://www.starpointing.com/temp/mosaicBottom.fit
http://www.starpointing.com/temp/mosaicTop.fit
http://www.starpointing.com/temp/Starfield.fit

I'm very much interested in what you get and how accurate it is!
Any help is very much appreciated!

Thanks and happy Eastern,
Fabian

ruediger

  • Guest
Re: Problem with Merging simple Mosaic
« Reply #1 on: 2012 April 07 14:10:10 »
- Generate starfield with StarGenerator
- Align both mosaic parts to the starfield
- Merge both mosaic parts to a single image
Is the mosaic going to become larger than only the two parts? If not, a starfield is not necessary, you can use StarAlignment / Register /Union - Separate, see screenshot. Not shown is the interpolation setting: 2D-surface splines, Auto, 0.30.

After tweaking the parameters, I got no visible errors when I checked the difference of the aligned images and the average of them. Of course you have to linear fit them and use the Gradient Domain Tools to really build the mosaic.

I'm not sure, if these parameters will work with the starfield also, but I made just a quick test on my netbook which is not the fastest when aligning images :)

Happy easterweekend also from me!

Rüdiger

Offline fneyer

  • Newcomer
  • Posts: 31
Re: Problem with Merging simple Mosaic
« Reply #2 on: 2012 April 07 15:34:04 »
Wow, what a reaction time.. :) Thanks a lot, Rüdiger!

Indeed, I could have used only the two parts without the starfield. However, my idea is to limit the number of image transformations when building a mosaic. Since each transformation reduces the data quality, I want to build a reference image which is suitable as a reference for all parts of the mosaic. Now if you would create a reference image without the starfield, i.e. just from my two images, the distortion easily becomes too large and the alignment for the subsequent images will most probably fail (because distortion adds up and gets worse the larger the mosaic will be).

I will try the settings you used tomorrow and see how it goes!

Thanks for your help!
Fabian

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Problem with Merging simple Mosaic
« Reply #3 on: 2012 April 07 16:03:30 »
Hi Fabian,

You can build huge mosaics (e.g. 16 frames) without a reference star field. The number of interpolations is always the same: just one interpolation for each mosaic frame except the first one, which is never interpolated. Bear in mind that StarAlignment only interpolates the frame that you add to the mosaic at each step; the reference image is only copied in place.

With significant distortion a synthetic star field won't work. You need to align with stars at the overlapped area between each adjacent pair of frames:


Note the increased RANSAC tolerance parameter (6 pixels), which improves accuracy under high distortion. This screenshot shows the seam between both frames with the generated registration mask active on the mosaic image:


Another important option for accuracy is surface spline coordinate interpolation, as Rüdiger has pointed out. By the way, no previews are necessary to build this mosaic; StarAlignment can find the intersection area automatically.

Finally, you probably will want to use Georg's GradientMergeMosaic tool. This requires building the mosaic in register/union - separate mode.

Hope this helps.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline fneyer

  • Newcomer
  • Posts: 31
Re: Problem with Merging simple Mosaic
« Reply #4 on: 2012 April 08 01:15:29 »
Hi Juan,

Thanks for your help!

My point in creating a reference image is to reduce the total number of interpolations. Usually you align all images of each mosaic part to one-another. Afterwards you would stitch those parts togeter. So for all but one mosaic part, the number of interpolations is 2.
If I now could align all images directly to a reference representing the final star positions of my whole mosaic, I would have to make only 1 interpolation. Of course you also can create a reference image with two shots of each part of the mosaic (like you did). The problem I see in this is distortion: For larger mosaics, slightly distorted single frames may produce a reference with a net distortion that is much larger. If you could manage to use the star catalogue as reference, you could get rid of that. Does it make sense to you?

Fabian

ruediger

  • Guest
Re: Problem with Merging simple Mosaic
« Reply #5 on: 2012 April 08 01:32:50 »
The problem I see in this is distortion: For larger mosaics, slightly distorted single frames may produce a reference with a net distortion that is much larger. If you could manage to use the star catalogue as reference, you could get rid of that. Does it make sense to you?
This is partly discussed though not finished here: /forum/index.php?topic=4071.msg28343#msg28343.
I think there is not much missing to use the coordinates from plate solved images for mosaic building on star fields. Especially it helps if you are going into the range of camera widefield lenses. Also you could start placing arbitrarily pictures onto a grid even if they don't overlap at all, showing you the gaps to fill with additional pics.

Rüdiger

Offline fneyer

  • Newcomer
  • Posts: 31
Re: Problem with Merging simple Mosaic
« Reply #6 on: 2012 April 08 01:45:27 »
Exactly, Rüdiger!
And you would save one image interpolation which gives you better data quality (even though just a little bit).. :)

Fabian

Offline fneyer

  • Newcomer
  • Posts: 31
Re: Problem with Merging simple Mosaic
« Reply #7 on: 2012 April 08 06:18:59 »
Hi Rüdiger and Juan,

Now I tryed to align my two mosaic parts to the starfield using the parameters you estimated. The result is attached.
Also when I try to use just the two mosaic parts (combined to a mosaic) as a reference to align all other images I get a very similar result. So neither technique seams to work. I guess the distortions are still too large to be reduced in a single transformation.

Fabian

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Problem with Merging simple Mosaic
« Reply #8 on: 2012 April 09 01:20:34 »
How about this:

- Generate a working mosaic with StarAlignment following the sequence that minimizes cumulative errors. For example, to generate a mosaic with 9 panels, make 3 submosaics, one for each row of three images, and then the whole working mosaic taking the central row as reference. Or do it by columns, if more appropriate.

- Now generate your final mosaic using the working mosaic from the previous step as reference. In this way you'll only interpolate each image once. If your mosaic is very large (> 12 frames), perhaps you'll have to help SA defining previews roughly covering the overlapped area for each frame, although the automatic intersection computation routine works nicely in most cases. If you want to use GradientMergeMosaic you'll have to generate separate aligned mosaic frames.

We have used this technique to build very large mosaics with excellent results.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline fneyer

  • Newcomer
  • Posts: 31
Re: Problem with Merging simple Mosaic
« Reply #9 on: 2012 April 09 11:31:57 »
Yes, that is a possibility! Thanks Juan for your thoughts!
However, in this case you use your images for the working mosaic which, eventually, are distorted. I was more like thinking to reduce these 'minor' distortions using the starfield from the SG tool to build an 'undistorted' working mosaic.

Just out of curiosity: What telescope did you use for building the mosaics you mentioned?

Best regards,
Fabian

Offline bosch

  • PixInsight Addict
  • ***
  • Posts: 123
Re: Problem with Merging simple Mosaic
« Reply #10 on: 2012 October 07 10:07:27 »

***

Another important option for accuracy is surface spline coordinate interpolation, as Rüdiger has pointed out. By the way, no previews are necessary to build this mosaic; StarAlignment can find the intersection area automatically.

***


Gracias Juan,
llevaba todo el fin de semana loco modificando parámetros y me era imposible unir más de 4 de las 16 teselas de mi mosaico, hasta que finalmente he escogido "2D-Surface Splines" en Registration model.