User`s manual
AW00049313000 Pixel Data Formats
Basler runner 163
10.3.5 YUV 4:2:2 Packed Format
When a color camera is set for the YUV 422 Packed pixel data format, each pixel in an acquired
frame goes through a conversion algorithm that transforms the pixel data from the R, G, B color
model to the Y, U, V color model.
The conversion algorithm uses the following formulas:
Y = 0.30 R + 0.59 G + 0.11 B
U = - 0.17 R - 0.33 G + 0.50 B
V = 0.50 R - 0.41 G - 0.09 B
Once the conversion to a YUV color model is complete, the pixel data is transmitted to the host PC.
With this format, the Y component is transmitted for each pixel, but the U and V components are
only transmitted for every second pixel.
The table below describes how the pixel data for a received frame will be ordered in the image buffer
in your PC when the camera is set for YUV 4:2:2 Packed output.
The following standards are used in the table:
P
0
= the first pixel transmitted by the camera
P
n
= the last pixel transmitted by the camera
B
0
= the first byte in the buffer
B
m
= the last byte in the buffer
Note
The values for U and for V normally range from -128 to +127. Because the
camera transfers U values and V values with unsigned integers, 128 is added
to each U value and to each V value before the values are transferred from
the camera. This process allows the values to be transferred on a scale that
ranges from 0 to 255.
Byte Pixel - Data Bits
B
0
U P
0
7 ... 0
B
1
Y P
0
7 ... 0
B
2
V P
0
7 ... 0
B
3
Y P
1
7 ... 0
B
4
U P
2
7 ... 0
B
5
Y P
2
7 ... 0
B
6
V P
2
7 ... 0










