User`s manual

Pixel Data Formats AW00049313000
156 Basler runner
10.3 Pixel Data Formats for Color Cameras
10.3.1 Mono 8 Format
When a color camera is set for the Mono 8 pixel data format, the pixel values in each acquired
image are first converted to the YUV color model as described later in this chapter for the YUV 4:2:2
Packed format. The camera then transmits the 8 bit Y value for each pixel to the host PC. In the
YUV color model, the Y component for each pixel represents a brightness value. This brightness
value can be considered as equivalent to the value that would be sent from a pixel in a monochrome
camera. So in essence, when a color camera is set for Mono 8, it outputs an 8 bit monochrome
image. (This type of output is sometimes referred to as "Y Mono 8".)
The table below describes how the pixel data for a received frame will be ordered in the image buffer
in your PC when a color camera is set for Mono 8 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
Byte Pixel - Data Bits
B
0
Y P
0
7 ... 0
B
1
Y P
1
7 ... 0
B
2
Y P
2
7 ... 0
B
3
Y P
3
7 ... 0
B
4
Y P
4
7 ... 0
B
5
Y P
5
7 ... 0
B
6
Y P
6
7 ... 0
B
7
Y P
7
7 ... 0
B
m-3
Y P
n-3
7 ... 0
B
m-2
Y P
n-2
7 ... 0
B
m-1
Y P
n-1
7 ... 0
B
m
Y P
n
7 ... 0