User`s manual

Pixel Data Formats AW00089316000
192 Basler ace GigE
With the camera set for Bayer BG 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.
9.3.2 Bayer GR 8 Format
When a color camera is set for the Bayer GR 8 pixel data format, it outputs 8 bits of data per pixel
and the pixel data is not processed or interpolated in any way. So, for each pixel covered with a red
filter, you get 8 bits of red data. For each pixel covered with a green filter, you get 8 bits of green
data. And for each pixel covered with a blue filter, you get 8 bits of blue data. (This type of pixel data
is sometimes referred to as "raw" output.)
The "GR" in the name Bayer GR 8 refers to the alignment of the colors in the Bayer filter to the pixels
in the acquired images. For even rows in the images, pixel one will be green, pixel two will be red,
pixel three will be green, pixel four will be red, etc. For odd rows in the images, pixel one will be
blue, pixel two will be green, pixel three will be blue, pixel four will be green, etc.
For more information about the Bayer filter, see Section 8.1 on page 155.
The tables below describe how the data for the even rows and for the odd rows of a received frame
will be ordered in the image buffer in your PC when the camera is set for Bayer GR 8 output.
The following standards are used in the tables:
P
0
= the first pixel transmitted by the camera for a row
P
n
= the last pixel transmitted by the camera for a row
B
0
= the first byte of data for a row
B
m-3
Blue value for P
n-3
B
m-3
Green value for P
n-3
B
m-2
Green value for P
n-2
B
m-2
Red value for P
n-2
B
m-1
Blue value for P
n-1
B
m-1
Green value for P
n-1
B
m
Green value for P
n
B
m
Red value for P
n
This Data Value
(Hexadecimal)
Indicates This Signal Level
(Decimal)
0xFF 255
0xFE 254
 
 
 
0x01 1
0x00 0