Mercury U3V Cameras User’s Manual73the user.The auto gain function can be used with the auto exposure at the same time, at this moment, the exposureis adjusted first, that is: when the exposure time reaches the maximum which is set by the user, then thegain starts to adjust.2.3.4.3. Auto ExposureThe auto exposure function can adjust the camera’s exposure time automatically, so that the average grayvalue in AAROI can achieve to the expected gray value. The auto exposure can be controlled by “Once” and“Continuous” mode.When using the “Once” mode, the camera adjust the image data in the AAROI to the expected gray valueonce, then the camera will close the auto exposure function. When using the “Continuous” mode, thecamera will continuous adjusting the exposure time according to the data of the AAROI, so that the data inthe ROI is kept near to the expected gray level.The expected gray value is set by the user and it is related to the data bit depth. For 8bit pixel data, theexpected gray value range is 0-255, for 10bit pixel data, the expected gray value range is 0-1023, and for12bit pixel data, the expected gray value range is0-4095.The camera adjusts the exposure time within the range [minimum exposure time, maximum exposure time]which is set by the user.The auto exposure function can be used with the auto gain at the same time, at this moment, the exposureis adjusted first, that is: when the exposure time reaches the maximum which is set by the user, then thegain starts to adjust.2.3.5. Auto White Balance2.3.5.1. Auto White Balance ROIAuto White Balance function use the image data of the “white dot” area (ROI) to calculate the white balancecoefficient, and then use the coefficient to handle the components of the image, in order to make the R/G/Bcomponent the same in the ROI.ROI is defined in the following way:AWBROIOffsetX: The offset of the X axis direction.AWBROIOffsetY: The offset of the Y axis direction.AWBROIWidth: The width of ROI.AWBROIHeight: The height of ROI.Offset is the offset value that relative to the upper left corner of the image. Where the step length of X axisdirection offset and width is 4, the step length of Y axis direction offset and height is 2. The ROI settingdepends on the current image and cannot exceed the current image range. That is to say, assuming thecurrent image width is Width, the image height is Height, then the ROI setting need to meet the followingcondition 2:AWBROIWidth AWBROIOffsetX Width .AWBROIHeight AWBROIOffsetY Height .If not meet the condition 2, the user cannot setting the ROI.The default value of ROI is the entire image, you can set the “white dot” area (ROI) according to your need.Where the minimum value ofAWBROIWidth can be set is 16, the maximum value is equal to the