Is there a debayer function in teh script language?

Scripts and programs to automate Astroart
Post Reply
Forum_2018
Posts: 263
Joined: 17 Dec 2018, 14:45

Is there a debayer function in teh script language?

Post 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?

Forum_2018
Posts: 263
Joined: 17 Dec 2018, 14:45

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

Post 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.

Forum_2018
Posts: 263
Joined: 17 Dec 2018, 14:45

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

Post by Forum_2018 »

Thanks Fabio,

That worked well.

Post Reply