8.Features
© 2023 China Daheng Group, Inc. Beijing Image Vision Technology Branch 148
8.3.4.
Auto Exposure/Auto Gain
8.3.4.1.
ROI Setting of Auto Exposure/ Auto Gain
For Auto Exposure and Auto Gain, you can specify a portion of the sensor array and only the pixel data
from the specified portion will be used for auto function control.
AAROI is defined by the following way:
AAROIOffsetX: The offset of the X axis direction.
AAROIOffsetY: The offset of the Y axis direction.
AAROIWidth: The width of ROI.
AAROIHeight: The height of ROI.
Offset is the offset value that relative to the upper left corner of the image. The step of AAROIOffsetX and
AAROIWidth is 4. The step of AAROIOffsetY and AAROIHeight is 2. The setting of the AAROI depends
on the size of the current image and cannot exceed the range of the current image. That is to say, assuming
the Width and Height are parameters for users captured image, then the AAROI setting need to meet the
condition 1:
AARO AAROIOffsetX ≤ Width
AAROI AAROIOffsetY ≤ Height
If condition 1 is not met, the user cannot set the ROI.
The default value of ROI is the entire image, you can set the ROI according to your need. Where the
minimum value of AAROIWidth can be set to 16, and the maximum value is equal to the current image
width. The minimum value of AAROIHeight can be set to 16, and the maximum value is equal to the current
image height, they are all need to meet the condition1.
For example: the current image width is 1024, the height is 1000, and then the ROI setting is:
AAROIOffsetX = 100
AAROIOffsetY = 50
AAROIWidth = 640
AAROIHeight = 480
The relative position of the ROI and the image is shown in Figure 8-19.
ROI
1024
1000
ROI
640
480
100
50
Figure 8-19 An example for the relative position between the ROI and the current image