Add new comment

I've already answered to that

I've already answered to that (1st/2nd replies in this thread):
LibRaw::COLOR(row,col) returns color index for (row,col)
So, for bayer, 4 calls for (0,0), (0,1), (1,0), (1,1) will give you bayer pattern used.

COLOR() == 3 is 'second green'

-- Alex Tutubalin @LibRaw LLC