Bayer Gb 16 Format (Equivalent To Dcam Raw 16) - Basler Pioneer User Manual

Gige vision cameras
Table of Contents

Advertisement

11.3.3 Bayer GB 16 Format
When a color camera is set for the Bayer GB 16 pixel data format, it outputs 16 bits of data per pixel
with 12 bits effective. The 12 bits of effective pixel data fill from the least significant bit. The four
unused most significant bits are filled with zeros.
With the Bayer GB 16 the pixel data is not processed or interpolated in any way. So, for each pixel
covered with a red lens, you get 12 effective bits of red data. For each pixel covered with a green
lens, you get 12 effective bits of green data. And for each pixel covered with a blue lens, you get 12
effective bits of blue data. (This type of pixel data is sometimes referred to as "raw" output.)
The "GB" in the name Bayer GB 16 refers to the alignment of the colors in the Bayer filter to the
pixels in the acquired images. For even lines in the images, pixel zero will be green, pixel one will
be blue, pixel two will be green, pixel three will be blue, etc. For odd lines in the images, pixel zero
will be red, pixel one will be green, pixel two will be red, pixel three will be green, etc.
For more information about the Bayer filter, see Section 11.3.1 on
The tables below describe how the data for the even lines and for the odd lines of a received frame
will be ordered in the image buffer in your PC when the camera is set for Bayer GB 16 output. Note
that the data is placed in the image buffer in little endian format.
The following standards are used in the tables:
P
= the first pixel transmitted by the camera for a line
0
P
= the last pixel transmitted by the camera a line
n
B
= the first byte of data for a line
0
B
= the last byte of data for a line
m
Even Lines
Byte
Data
B
Low byte of green value for P
0
B
High byte of green value for P
1
B
Low byte of blue value for P
2
B
High byte of blue value for P
3
B
Low byte of green value for P
4
B
High byte of green value for P
5
B
Low byte of blue value for P
6
B
High byte of blue value for P
7
B
Low byte of green value for P
m-7
B
High byte of green value for P
m-6
Basler pioneer
(Equivalent to DCAM Raw 16)
Odd Lines
Byte
B
0
0
B
0
1
B
1
2
B
1
3
B
2
4
B
2
5
B
3
6
B
3
7
B
n-3
m-7
B
n-3
m-6
page
149.
Data
Low byte of red value for P
High byte of red value for P
Low byte of green value for P
High byte of green value for P
Low byte of red value for P
High byte of red value for P
Low byte of green value for P
High byte of green value for P
Low byte of red value for P
High byte of red value for P
Pixel Data Formats
0
0
1
1
2
2
3
3
n-3
n-3
153

Advertisement

Table of Contents
loading

Table of Contents