![Smartek GCC Скачать руководство пользователя страница 85](http://html1.mh-extra.com/html/smartek/gcc/gcc_user-manual_1297302085.webp)
User Manual - twentynine
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
BayerGR16, BayerRG16, BayerGB16, BayerBG16
Description
16-bit monochrome unsigned
Pixel size
2 byte
Value range
0 . . . 65535
Table 45: Specification PixelFormat Bayer16
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 1
(MSB)
Byte 0
(LSB)
P (1, 1)
Byte 3
(MSB)
Byte 2
(LSB)
P (1, 2)
Byte 3
(MSB)
Byte 3
(MSB)
…
…
0
7
…
8
15
…
Figure 59: Image layout with pixel format GR16/RG16/GB16/BG16
79
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2