Page 1 of 1

coregister with SCRIPT

Posted: 30 Jun 2019, 07:54
by planet39asai
It seems that AA7 does not support "coregister" function with SCRIPT. Are there any ways to use "coregsiter" with SCRIPT?

Re: coregister with SCRIPT

Posted: 01 Jul 2019, 15:38
by fabdev
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.

Re: coregister with SCRIPT

Posted: 02 Jul 2019, 11:50
by planet39asai
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

Re: coregister with SCRIPT

Posted: 03 Jul 2019, 10:24
by fabdev
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.

Re: coregister with SCRIPT

Posted: 03 Jul 2019, 11:10
by einari
If your script automatically detects new objects then I'm sure many would be interested - me included.

Re: coregister with SCRIPT

Posted: 05 Jul 2019, 03:18
by planet39asai
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

Re: coregister with SCRIPT

Posted: 05 Jul 2019, 12:23
by fabdev
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.

Re: coregister with SCRIPT

Posted: 06 Jul 2019, 01:15
by planet39asai
Fabio

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

H. Asai