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

Gige vision cameras
Table of Contents

Advertisement

11.3.2 Bayer GB 8 Format
When a color camera is set for the Bayer GB 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
lens, you get 8 bits of red data. For each pixel covered with a green lens, you get 8 bits of green
data. And for each pixel covered with a blue lens, you get 8 bits of blue data. (This type of pixel data
is sometimes referred to as "raw" output.)
The "GB" in the name Bayer GB 8 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 8 output.
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
Green value for P
0
B
Blue value for P
1
B
Green value for P
2
B
Blue value for P
3
B
Green value for P
4
B
Blue value for P
5
B
Green value for P
m-5
B
Blue value for P
m-4
B
Green value for P
m-3
B
Blue value for P
m-2
B
Green value for P
m-1
B
Blue value for P
m
Basler pioneer
(Equivalent to DCAM Raw 8)
Odd Lines
Byte
B
0
0
B
1
1
B
2
2
B
3
3
B
4
4
B
5
5
B
n-5
m-5
B
n-4
m-4
B
n-3
m-3
B
n-2
m-2
B
n-1
m-1
B
n
m
page
149.
Data
Red value for P
0
Green value for P
1
Red value for P
2
Green value for P
3
Red value for P
4
Green value for P
5
Red value for P
n-5
Green value for P
n-4
Red value for P
n-3
Green value for P
n-2
Red value for P
n-1
Green value for P
n
Pixel Data Formats
151

Advertisement

Table of Contents
loading

Table of Contents