Manual

Table Of Contents
DobotVisionStudio User Guide
Issue V4.1.2 (2022-06-08) User Guide Copyright © Yuejiang Technology Co., Ltd.
193
Brightness
An image is overexposed and appears very white, or insufficient light appears very dark. At this
time, brightness correction and correction can be carried out. curdst[i]=offset+cursrc[i]*gain
Among them, cursrc[i] represents the current gray value of the input image, curdst[i] represents
the current gray value of the output image, gain represents the brightness correction gain, and
offset represents the brightness correction compensation.
In the above calculation formula, the calculation results of curdst[i] are all limited to the range
of [0,255].
Gain: it is used to increase the overall pixel brightness of the image screen. The default value is
0 and the adjustment range is from 0 to 100.
Compensation: it is used to add or subtract this value for overall pixel of the image. The
default value is 0 and the adjustment range is from -255 to 255.
Image Computing
Image math needs to configure two images of the same size, and only supports full image operation.
The principle of image math is to calculate the gray values of the pixels at the same coordinates in
the two images and then obtain a new image, as shown below.