Resolved XBAYROFF and YBAYROFF

Discussion in 'Image Processing' started by David Partridge, Feb 1, 2020.

  1. David Partridge

    David Partridge Standard User

    Joined:
    Feb 1, 2020
    Messages:
    2
    I understand that Diffraction limited defined these FITS keywords.

    Please could you explain how they should be applied when de-bayering an image

    If both are zero I can see that for an RGGB image the pixels should be interpreted like this (assuming FITS is BOTTOM UP):

    GBGBGBGB
    RGRGRGRG

    If XBAYROFF is 1, should I read the pixels as:

    BGBGBGBG
    GRGRGRGR

    if YBAYROFF is 1, should I read them as:

    RGRGRGRG
    GBGBGBGB

    and if both are 1, should I read the pixels as:

    GRGRGRGR
    BGBGBGBG


    Thanks
    David




     
    Last edited: Feb 1, 2020
  2. Doug

    Doug Staff Member

    Joined:
    Sep 25, 2014
    Messages:
    6,480
  3. David Partridge

    David Partridge Standard User

    Joined:
    Feb 1, 2020
    Messages:
    2
    OK, thank you. Hmmmm - that seems to work from a top left origin, rather than bottom left ...
     
    Last edited: Feb 1, 2020

Share This Page