coregister with SCRIPT

Scripts and programs to automate Astroart
Post Reply
planet39asai
Posts: 4
Joined: 30 Jun 2019, 07:39

coregister with SCRIPT

Post by planet39asai » 30 Jun 2019, 07:54

It seems that AA7 does not support "coregister" function with SCRIPT. Are there any ways to use "coregsiter" with SCRIPT?

fabdev
Posts: 503
Joined: 03 Dec 2018, 21:43

Re: coregister with SCRIPT

Post by fabdev » 01 Jul 2019, 15:38

No, but you can use the script command " Image.Align "
You can configure the Align window so that the Scale is corrected as well, if needed.
What is the goal of your script? Maybe there is another solution.

planet39asai
Posts: 4
Joined: 30 Jun 2019, 07:39

Re: coregister with SCRIPT

Post by planet39asai » 02 Jul 2019, 11:50

Fabio,

Thank you for your reply.
My goal is to automatically identify the difference between two images such as previously taken image and a new image, a reference image and my image, or a star catalog image and my image. Eventually it is to find a new object like supernova, asteroid or comet from the sky survey image.

H. Asai

fabdev
Posts: 503
Joined: 03 Dec 2018, 21:43

Re: coregister with SCRIPT

Post by fabdev » 03 Jul 2019, 10:24

For this research the command "Image.Align" works well.
If you just need to blink, there is also the command "Image.BlinkAlign" that was used for this discover:
viewtopic.php?f=6&t=247
the examples are in the Guide, "Script" chapter.

einari
Posts: 49
Joined: 28 Jan 2019, 10:46

Re: coregister with SCRIPT

Post by einari » 03 Jul 2019, 11:10

If your script automatically detects new objects then I'm sure many would be interested - me included.

planet39asai
Posts: 4
Joined: 30 Jun 2019, 07:39

Re: coregister with SCRIPT

Post by planet39asai » 05 Jul 2019, 03:18

Fabio

Thank you for your advice.
I'll try it and hope it works.
By the way, what's the difference between Image.Align and Coregister although they have the same functions?

H. Asai

fabdev
Posts: 503
Joined: 03 Dec 2018, 21:43

Re: coregister with SCRIPT

Post by fabdev » 05 Jul 2019, 12:23

The difference is the same of the menu command "Align" and "Coregister":

"Align" just aligns two images (with rotation and scale if needed).

"Coregister" instead modifies the size of the image (to match a different scale) it's useful only for images from different sources. Often you need to select manually the reference points. It's used rarely, for example for non-astronomical images.

planet39asai
Posts: 4
Joined: 30 Jun 2019, 07:39

Re: coregister with SCRIPT

Post by planet39asai » 06 Jul 2019, 01:15

Fabio

Thank you for your explanation.
I have understood the difference between Align and Coregister.

H. Asai

Post Reply