colors is color (component) colors is color (component) count really :). It may be 3 or 4 even for RGB(G) files if two greens are different. For 2x2 bayer images, color (index) is: (imgdata.idata.filters >> (((row << 1 & 14) | (col & 1)) << 1) & 3); -- Alex Tutubalin @LibRaw LLC reply
colors is color (component) count really :). It may be 3 or 4 even for RGB(G) files if two greens are different.
For 2x2 bayer images, color (index) is:
(imgdata.idata.filters >> (((row << 1 & 14) | (col & 1)) << 1) & 3);