Pixel Data Formats
134 Basler pilot
9.3.10 Mono 8 Format (Equivalent to DCAM Mono 8)
When a color camera is set for the Mono 8 pixel data format, the pixel values in each captured
image are first interpolated and converted to the YUV color model as described 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
With the camera set for Mono 8, the pixel data output is 8 bit data of the “unsigned char” type. The
available range of data values and the corresponding indicated signal levels are as shown in the
table below.
Byte Data
B
0
Y value for P
0
B
1
Y value for P
1
B
2
Y value for P
2
B
3
Y value for P
3
B
4
Y value for P
4
B
5
Y value for P
5
B
6
Y value for P
6
B
7
Y value for P
7
• •
• •
• •
B
m-3
Y value for P
n-3
B
m-2
Y value for P
n-2
B
m-1
Y value for P
n-1
B
m
Y value for P
n