Add new comment

Bayer layout

Hi.

I'm trying to do my own processing: as far as my tests are correct, calling dcraw_process() do the whole job and produces a 8bit image.

I want to get the full bits, so I guess I have to stay with raw2image().
It seems that calling raw2image() gives us a non demozaised image, r, b, and twice g, and that just after a call to raw2image(), the second g cannot be ignored.

Can you confirm that?

Also, is there any way to know the layout of this r, g, b, g2 values? Which one is top-left, which one top-right, and so on? I guess this may change from camera to camera...

Forums: