jcjesior@free.fr le octobre 18, 2019, 03:29:22 15
The FITS header of a Light created by KStars contains the 3 following parameters XBAYROFF, XBAYROFF and BAYERPAT .
In my case (I use a ZWO camera) :
XBAYROFF= 0 / X offset of Bayer array
YBAYROFF= 1 / Y offset of Bayer array
BAYERPAT= 'GRBG    ' / Bayer color pattern                           
These parameters can be set in the INDI Control Panel / Image Info.
The Bayer pattern can be overriden in Siril by using the Settings / Other Debayer dialog.
This might be helpful but the problem is that Siril keeps taking into account the XBAYROFF, XBAYROFF values of the FITS header.
Could you please introduce entries for the XBAYROFF, XBAYROFF parameters in Siril ?
Thanks.

lock042 le octobre 18, 2019, 05:14:18 17
Why do you want to change.
Let Siril select the right pattern, check the option to read from top to bottom and it should be fine.

jcjesior@free.fr le octobre 18, 2019, 05:59:18 17
I was probably not clear enough.
If you let Siril set the Bayer pattern to BGGR but change the FITS header of the file (using a simple text editor) :
from : XBAYROFF=                    0 / X offset of Bayer array
to : XBAYROFF=                    1 / X offset of Bayer array
Siril will output a different RGB image.
See the attached file to compare the Siril outputs.

jcjesior@free.fr le octobre 18, 2019, 06:06:15 18
... in other words, the Siril settings should allow to modify XBAYROFF and YBAYROFF as it allows to modify BAYERPAT.

lock042 le octobre 18, 2019, 06:26:48 18
Ok I understand. But why do you change the offset with an editor  ???
If you don't change anything it would work.

I ve no problem with adding these textbox but I would like to understand.

jcjesior@free.fr le octobre 18, 2019, 06:42:39 18
I got my camera settings from the ZWO people themselves : https://bbs.astronomy-imaging-camera.com/viewtopic.php?t=6842
XBAYROFF= 1 / X offset of Bayer array
YBAYROFF= 0 / Y offset of Bayer array
BAYERPAT= 'GRBG    ' / Bayer color pattern       
However I was unsatisfied with the colours produced by Siril.
This pushed me to investigate what happened.
Thus changing the FITS header with a text editor was the simplest way to proceed without having to capture new photos.
Now I realised that the ZWO people made a mistake : the parameters should be :
XBAYROFF= 0 / X offset of Bayer array
YBAYROFF= 1 / Y offset of Bayer array
BAYERPAT= 'GRBG    ' / Bayer color pattern       

Then I realised that Siril reads the XBAYROFF and XBAYROFF values but doesn't allow to modify them conveniently.
If Siril allows to override BAYERPAT (which is good) it should also allow to modify XBAYROFF and XBAYROFF
                   

jcjesior@free.fr le octobre 18, 2019, 06:52:14 18
If you want to test the original files and modify the FITS headers you can download them from :
http://dl.free.fr/wLlBmTHy2

lock042 le octobre 18, 2019, 06:56:19 18
However I was unsatisfied with the colours produced by Siril.

Did you checked the option "Debayer FITS file in up-bottom orientation" ???

jcjesior@free.fr le octobre 18, 2019, 07:02:14 19
Yes I did. But this doesn't help and makes my pictures even worse .

lock042 le octobre 22, 2019, 09:17:35 09

jcjesior@free.fr le octobre 22, 2019, 09:29:17 09
As always, very reactive.
Thank you.

lock042 le novembre 09, 2019, 05:40:35 17
I have coded your feature. It will be in Siril soon (after tests).
Now you can choose to load all information from headers or to manually choose. By all information I mean : pattern and offsets.

jcjesior@free.fr le novembre 09, 2019, 05:47:00 17
Thank you so much !

lock042 le novembre 09, 2019, 08:54:23 20