Page 1 of 1

Is there a debayer function in teh script language?

Posted: 26 Dec 2018, 20:41
by Forum_2018
Hi,

I am writing a script, that processes a bunch of fits files. They need to be saved as *.png.
Since the fits files originates from a Canon DSLR, I need to debayer the fits before saving as png.
Is that possible with AA7 scripting?

Re: Is there a debayer function in teh script language?

Posted: 26 Dec 2018, 20:42
by Forum_2018
Hi,
not directly.
You could enable the option "Demosaic on load" so that the images are demosaiced when you open them with the command: Image.Open

If this is a single task, another solution is to convert (and debayer) all your images to FITS before running the script, using the option "Save all images" of Preprocessing.

Re: Is there a debayer function in teh script language?

Posted: 26 Dec 2018, 20:42
by Forum_2018
Thanks Fabio,

That worked well.