
Contents |
Brightness
Adjust the brightness of Image
1. imgBrightness a:=2;
2. imgBrightness a:=2 img:=mat(1) oimg:=mat(2);
3. imgBrightness a:=2 img:=[Mbook1]Msheet1!Mat(1) oimg:=<new>;
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Adjust Intensity | a |
Input double | |
Use this variable to specify how to change the brightness. This value should be within [-100, 100]. Specifying a negative value will cause the brightness to be reduced, while a positive value will increases the brightness. |
| Input Matrix | img |
Input Image | |
Specifies the image to be manipulated. The default input is the active image. |
| Output Image | oimg |
Output Image | |
Specifies the output image. By default, the output image is the same as the input image. See the syntax here. |
This function adjusts the brightness of an image. The brightness adjustment can be either positive or negative, which means that you can either increase or decrease the brightness of the input image.
In this example, we use the imgBrightness function to increase the brightness of the input image:

For more examples, please refer to XF Script Dialog (press F11).
The computation uses L_ChangeBitmapIntensity() function from LEADTOOLS Main API. For this information, please refer to the LEADTOOLS Main API Help file, Version 14 and read the L_ChangeBitmapIntensity topic.
LEADTOOLS Main API Help file, Version 14
imgContrast, imgHue, imgSaturation, imgGamma, imgHistcontrast