You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Docmentation] How to find out the Bayer pattern from the CFA layout #714
I'm reading the excellent picamera documentation (thank you so much!) and I have now a better idea of how the sensor works. I'd like to perform some RAW Bayer data captures myself, so began reading section 4.5 Raw Bayer data captures
At some point, the example code states that the OV5647 sensor Bayer pattern is BGGR and then, it shows the equivalent
pixel CFA as
Activity
6by9 commentedon Jan 26, 2022
It is contradictory.
If it is BGGR, then the layout would be
The layout illustrated would be GBRG.
As noted just after that,
so you need to know which sensor you are dealing with, and the flips in effect in order to be able to know the Bayer order.
Or you can look at offset 268 (if I've counted correctly) into the header which contains the Bayer order:
0 - RGGB
1 - GBRG
2 - BGGR
3 - GRBG
dcraw uses this header to get the order - https://github.com/6by9/dcraw/blob/master/dcraw.c#L6466
astrorafael commentedon Jan 27, 2022
Ok, so this is a typo in the example CFA layout in the documentation. Good to know. Should be trivial to fix it quickly.
I have also downloaded the OV 5647 datasheet and on page 25, figure 3-1 shows the chip CFA pattern with the BG/GR patterns as expected,