Author Topic: Annotation script  (Read 151962 times)

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: Annotation script
« Reply #240 on: 2013 April 03 03:44:06 »
Hi Andres!

Answer to #231

Quote
Is it possible to get the converted catalogs (in the format, which is nessecary for your script)
for download? My Lap hasnt always a connection to the net.
Quote
It would not be easy because some catalogs are huge (>10GB) and JavaScript is not very fast. I would have to program indexes and a search mechanism. This is a lot of work and I have currently other priorities.

I will think about it but I can't promise anything.

Ok - its a pity, but thanks for your reply and again: thank you for this great tool!!

Best regards.
Herbert, Austria

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #241 on: 2013 April 03 03:54:42 »
Hi Andres!

Answer to #231

Quote
Is it possible to get the converted catalogs (in the format, which is nessecary for your script)
for download? My Lap hasnt always a connection to the net.
Quote
It would not be easy because some catalogs are huge (>10GB) and JavaScript is not very fast. I would have to program indexes and a search mechanism. This is a lot of work and I have currently other priorities.

I will think about it but I can't promise anything.

Ok - its a pity, but thanks for your reply and again: thank you for this great tool!!

Best regards.
Herbert, Austria
Herbert,
have you tried to use custom catalogs? Please read http://pixinsight.com/forum/index.php?topic=3966.msg28257#msg28257
You can download the catalogs that you want from Vizier, process them using Excel or similar and save them in the format used by AnnotateImage.

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Annotation script
« Reply #242 on: 2013 April 03 05:25:26 »
I know its probably a toy only for "real" astrophotographers : Would it be possible to optionally draw the constellations (Orion, Ursus Major, ... connecting lines only) with the Annotation script? Would be nice, mostly for wide fields.
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #243 on: 2013 April 03 07:31:07 »
I know its probably a toy only for "real" astrophotographers : Would it be possible to optionally draw the constellations (Orion, Ursus Major, ... connecting lines only) with the Annotation script? Would be nice, mostly for wide fields.
Georg
I have not done it yet because currently ImageSolver can not solve wide field images reliably. However, the next version of ImageSolver will be able to solve them. Drawing the constellations would be a reasonable next step.

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #244 on: 2013 April 03 09:22:28 »
Rüdiger has lend me an image taken with a Canon  EF 1,2/50mm L @ f2,8. I have solved it with ImageSolver 2.0 using 5th degree polynomials.

This image is an animated GIF with a comparison between the old algorithm and the new one:


The second image is a representation of the distortions that the algorithm detects on the image. The red lines exaggerate 10 times the distortion.

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Annotation script
« Reply #245 on: 2013 April 03 10:20:06 »
Well done! But a nit: Higher degree polys tend to "ring" or "oscillate". It looks to me like there is a circular zone of no distortion in your map. Is this correct?
Mike

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #246 on: 2013 April 03 10:36:40 »
Well done! But a nit: Higher degree polys tend to "ring" or "oscillate". It looks to me like there is a circular zone of no distortion in your map. Is this correct?
Mike
I don't understand what do you mean. The distortion image shows an oscillation. If you draw a graph or a radial cross section, the distortion goes up and down. The degree of the polynomials can be selected by the user, and for many images a lineal polynomial is still good enough.

The polynomials are calculated using a least squares linear multiple regression algorithm. If the center of the image shows no distortion is because the best solution is to consider that the center has no distortion.

The attached image is the distortion of a 105mm objective. The minimum distortion is not at the center.


Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Annotation script
« Reply #247 on: 2013 April 03 10:59:06 »
Thanks Andres, Just wondering:

About 80% out toward the edge, there is a ring of little distortion. Is this real? Maybe it would help to see an animation of the entire image and a matching map.

IMO solutions that are best in the least squares sense can still oscillate - the residual error of the model oscillates across the data. Just wondering if this is the case or not.

Is it possible to generate a map of residuals? Also, in the map arrows would help visualization (which direction is the local distortion offset?).

Mike
« Last Edit: 2013 April 03 11:31:24 by mschuster »

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #248 on: 2013 April 03 11:46:41 »
The script generates two debug images: the distortion map that you have already seen and a residuals image. In the residuals image the script draws a green cross at the predicted position of the star and a red line from the predicted position to the real position. When the residuals are zero, the red line degenerates to a point. The residuals image for Rudiger's image is this (click on it to open at full size):


In the distortion map, the red lines start always at the center of each cell. I prefer not to add an arrow because they would obfuscate the image in the areas with little distortion.

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #249 on: 2013 May 13 11:45:09 »
I have just finished a new version of AnnotateImage. This version has two new layers:
  • Constellation lines: The layer draws on the image the asterisms of the constellations.
  • Constellation borders: The layer draws on the image the borders between constellations.

These layers are useful for wide field images together the catalog layers "Named stars" and "Bright stars".

A few examples (click on the images for full size):



Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Annotation script
« Reply #250 on: 2013 May 13 13:05:12 »
That is simply fantastic!
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Josh Lake

  • PixInsight Old Hand
  • ****
  • Posts: 424
Re: Annotation script
« Reply #251 on: 2013 May 13 16:59:30 »
 :D

This script was already invaluable for my astronomy classes. Now, even more so! Thank you.

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Annotation script
« Reply #252 on: 2013 May 15 13:14:16 »
I have just finished a new version of AnnotateImage. This version has two new layers:
  • Constellation lines: The layer draws on the image the asterisms of the constellations.
  • Constellation borders: The layer draws on the image the borders between constellations.
Will Juan distribute it via the update mechanism?
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: Annotation script
« Reply #253 on: 2013 May 16 03:02:44 »
Quote
Will Juan distribute it via the update mechanism?

Sure thing. Can I proceed with the zip file you have posted here, Andrés?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Annotation script
« Reply #254 on: 2013 May 16 03:04:09 »
Quote
Will Juan distribute it via the update mechanism?

Sure thing. Can I proceed with the zip file you have posted here, Andrés?
Ok.