
8 APPLICATION NOTES
8.1 BAYER FILTER DECODING ALGORITHM
8.1.1 Introduction
The following information is provided to assist software developers to create a high-resolution
color image from the digitized data that is provided by the DVC-1312C Camera.
1) The electronics within the camera are the same for the monochrome as well as for the R-G-B
version of the camera. For this reason, all the timing signals, including digitized video data, clock,
enable-line and enable-frame are the same for both cameras. Also, all modes of operation that are
described for the monochrome version of the camera apply to the R-G-B version. These modes
include the electronic shutter modes, asynchronous reset mode, and pulse driven integration modes.
2) The color-filter-array (CFA) of the color imager follows the commonly used "Bayer pattern".
This pattern (shown below) is based on the premise that the human eye derives most of the
luminance data from the green content of a scene; and it is the resolution of this luminance data
that is perceived as the "resolution" of an image. Therefore, by ensuring that more of the pixels are
"green", a image of higher perceived resolution can be created--compared with an alternating R-G-
B color filter array with equal numbers of Red, Green and Blue pixels.
G
B
G
B
..
R
G
R
G
..
G
B
G
B
..
R
G
R
G
..
:
:
:
:
::
Figure 8.1-1: Bayer Pattern CFA
8.1.2 Color Pixel Processing
The following steps are required for processing the color pixels
8.1.3 White
Balance
Depending on the "color temperature" of the light source, a white object may generate different
values for its R, G and B pixel values. For example, when the camera is pointed at a uniformly
diffused white object that fills the entire field of view, the resulting R, G and B values may form
the following matrix:
31