Pixel Data Formats
Basler pilot 109
9.2 Pixel Data Formats for Mono Cameras
9.2.1 Mono 8 Format (Equivalent to DCAM Mono 8)
When a monochrome camera is set for the Mono 8 pixel data format, it outputs 8 bits of brightness
data per 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 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 Byte Data
B
0
Brightness value for P
0
• •
B
1
Brightness value for P
1
• •
B
2
Brightness value for P
2
B
m-4
Brightness value for P
n-4
B
3
Brightness value for P
3
B
m-3
Brightness value for P
n-3
B
4
Brightness value for P
4
B
m-2
Brightness value for P
n-2
• • B
m-1
Brightness value for P
n-1
• • B
m
Brightness value for P
n
This Data Value
(Hexadecimal)
Indicates This Signal Level
(Decimal)
0xFF 255
0xFE 254
• •
• •
• •
0x01 1
0x00 0