#26 bug in bayer_Dowsample function

closed-accepted
None
5
2011-08-21
2011-05-08
Anonymous
No

Within the function dc1394_bayer_Dowsample in the case of DC1394_COLOR_FILTER_GRBG and DC1394_COLOR_FILTER_GBRG bayer patterns, the pixel j+j+1 is never read; the pixel i+j+sx+1 is used instead. As result the red (blue in the case of GBRG) channel is used twice in the final image both as red and blue (blue and red in the case of GRBG).

The fix is trivial, nevertheless I attached a patch.

Discussion


  • Anonymous
    2011-05-08

    patch of the source file bayer.c that fixes the bug

     
    • assigned_to: nobody --> ddouxchamps
    • status: open --> closed-accepted
     
  • Patch merged, thanks