5.7.7 BayerGR16 / BayerRG16 / BayerGB16 / BayerBG16
In an image with pixel format Bayer16 each pixel value P is represented by two byte or 16 bits. The "GR",
"RG", "GB" or "BG" notation describes the Bayer pattern of the image sensor used in the camera. For
detailed description about the Bayer filter, please refer to chapter 4.2 - Color Imaging with Bayer Pattern.
The Bayer16 pixel format in SMARTEK Vision digital cameras is specified like shown below:
PixelFormat
Description
Pixel size
Value range
The two bytes are arranged in little-endian order, which means the least significant byte comes first, the
most significant byte second. The memory layout of the image with the Bayer16 pixel format is shown in
Figure 59. Starting from the upper left of the image, byte 0 and byte 1 represent the value of pixel P(1, 1),
byte 2 and byte 3 represent the value of pixel P(1, 2) and so on. The least significant bit is assigned to bit 0
of the first byte, the most significant bit to bit 7 of the second byte.
Byte 0
(LSB)
0
...
Figure 59: Image layout with pixel format GR16/RG16/GB16/BG16
BayerGR16, BayerRG16, BayerGB16, BayerBG16
Table 45: Specification PixelFormat Bayer16
P (1, 1)
Byte 1
Byte 2
(MSB)
(LSB)
7
8
...
15
16-bit monochrome unsigned
2 byte
0 . . . 65535
P (1, 2)
Byte 3
Byte 3
...
(MSB)
(MSB)
79
User Manual - twentynine
Byte 3
...
(MSB)
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2