Le forum des utilisateurs de Siril

Nouvelles:

  • L'équipe de développement de Siril est heureuse de vous accueillir dans ce forum.

    La version 0.9.12 est disponible
  • We are delighted to welcome you to this forum

    Version 0.9.12 is available

Nouvelles

L'équipe de développement de Siril est heureuse de vous accueillir dans ce forum.

La version 0.9.12 est disponible

The missing XBAYROFF and YBAYROFF parameters

jcjesior@free.fr · 144

Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
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.



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 403
    • Karma: +15/-0
Réponse #1 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.



Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
Réponse #2 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.



Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
Réponse #3 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.



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 403
    • Karma: +15/-0
Réponse #4 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.



Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
Réponse #5 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
                   



Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
Réponse #6 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



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 403
    • Karma: +15/-0
Réponse #7 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" ???



Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
Réponse #8 le: octobre 18, 2019, 07:02:14 19
Yes I did. But this doesn't help and makes my pictures even worse .



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 403
    • Karma: +15/-0
Réponse #9 le: octobre 22, 2019, 09:17:35 09



Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
Réponse #10 le: octobre 22, 2019, 09:29:17 09
As always, very reactive.
Thank you.



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 403
    • Karma: +15/-0
Réponse #11 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.



Hors ligne jcjesior@free.fr

  • Vénusien
  • **
    • Messages: 56
    • Karma: +3/-0
Réponse #12 le: novembre 09, 2019, 05:47:00 17
Thank you so much !



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 403
    • Karma: +15/-0