8.Features
© China Daheng Group, Inc. Beijing Image Vision Technology Branch 124
B10
G11
B12
G13
B14
……
……
Where G00 is the first pixel value of the first row (for the green component), R01 represents the second
pixel value (for the red component), and so on, so that the first row pixel values are arranged. B10 is the
first pixel value of the second row (for the blue component), the G11 is the second pixel value (for the
green component), and so on, and the second row of pixel values are arranged.
BayerGR10/BayerGR12
When the pixel format is set to BayerGR10 or BayerGR12, the value of each pixel in the output image of
the camera is 16 bits. According to the location difference, the three components of red, green and blue
are respectively represented. The format in the memory is as follows:
G00
R01
G02
R03
G04
……
B10
G11
B12
G13
B14
……
……
Each pixel is the same as BayerGR8, the difference is that each pixel is made up of two bytes, the first
byte is the low 8 bits of the pixel value, and the second byte is the high 8 bits of the pixel value.
When changing the pixel format, the device should stop acquisition.
8.3.3. ROI
By setting the ROI of the image, the camera can transmit the specific region of the image, and the output
region's parameters include OffsetX, OffsetY, width and height of the output image. The camera only reads
the image data from the sensor's designated region to the memory, and transfer it to the host, and the
other regions' image of the sensor will be discarded.
By default, the image ROI of the camera is the full resolution region of the sensor. By changing the OffsetX,
OffsetY, width and height, the location and size of the image ROI can be changed. The OffsetX refers to
the starting column of the ROI, and the OffsetY refers to the starting row of the ROI. Among them, the step
of OffsetX and width is 4, and the step of OffsetY and height is 2.
The coordinates of the ROI of the image are defined the 0
th
raw and 0
th
column as the origin of the upper
left corner of the sensor. As shown in the figure, the OffsetX of the ROI is 4, the OffsetY is 4, the height is
8 and the width is 12.