Allied International V2.4.0 Digital Camera User Manual


 
Description of the data path
OSCAR Technical Manual V2.4.0
91
RAW mode is accessible via Color_Mode Mono8, RAW8 and via Format_7.
Color interpolation (BAYER demosaicing)
In color interpolation, a red, green or blue value is determined for each pixel.
Three lines are needed for this interpolation:
Note
L
If the PC does not perform BAYER to RGB post-processing the
b/w image will be superimposed with a checkerboard pattern.
Figure 44: Bayer demosaicing (interpolation)
Formula 2: Bayer demosaicing interpolation formula
P1
red
R1 R3 R11 R13++ +
4
---------------------------------------------------
=
P1
green
G2 G6 G8 G12+++
4
------------------------------------------------
=
P1
blue
B7=
P2
red
R3 R13+
2
----------------------
=
P2
green
G4 2 G8× G12++
4
--------------------------------------------
=
P2
blue
B7 B9+
2
-------------------
=