Bayer filter pattern
Color filter array
The sensor glass lid of MIKROTRON EoSens color cameras is covered with a
Bayer color filter. In order to get the color information, the imaging software
has to decode the information of each pixel into RGB by using the values of its
neighbor pixels.
Depending on the sensor type, the color pattern can differ. The entry in the fea-
ture PixelFormat in the XML file shows what pattern applies to the sensor you
use.
Fig.: 7-1: Bayer filter pattern
BayerRG10 for example stands for a 10 bit pattern that starts with a red pixel fol-
lowed by a green one. BayerGB8 stands for an 8 bit pattern that starts with a
green pixel followed by a blue one. The figure below shows the four possible
Bayer patterns:
Example for BayerRG
In a BayerRGB color pattern pixel (0;0) has a red filter situated in the upper left
corner in the first line. Green1 pixels are located in the red-green row, green2
pixels are located in a green-blue row.
Each red, green and blue filter element covers exactly one pixel on the sensor. A
matrix of 2 x 2 filter elements builds a filter element matrix.
Conclusions
Because of the size and the order of a filter matrix element three facts can be
concluded:
MIKROTRON GmbH / 3CL / CAMMC301x-UG / 2020
36 - 40