Add new comment

Filter Pattern (CFA)

Thanks Alex,

I now have my application working. However, I have one last question.

Is it possible to find the Bayer filter pattern (CFA) from LibRaw? Basically, I need to establish if a specific camera is either:

  • RGGB
  • BGGR
  • GBRG
  • GRBG

I have looked at imgdata.idata.cdesc but this returns RGBG regardless of the camera in use. It seems that my Nikon DSLRs are using BGGR but Canon cameras are using RGGB.

Is it possible to receive this information from LibRaw?

Many thanks for your kind help.