Image: Adjustments: Gamma
Apply gamma correction to image
1. imgGamma a:=1;
2. imgGamma a:=2.3 img:=mat(1) oimg:=mat(2);
Please refer to the page for additional option switches when accessing the x-function from script
Input
double
Specifies the gamma value. It can be any number greater than 0.
Image
Specifies the source image to be manipulated. The default input is the active image.
Output
Specifies the output image. By default, the output image is the same as the input image.
See the syntax here.
The imgGamma function adjusts the intensity of colors in a bitmap by changing the gamma constant that is used to map the intensity values. Note that a gamma value greater than 1 will in general lead to an intensity increase, while a gamma value less than 1 will cause the intensity to be reduced.
In this example, we use the imgGamma function to increase the intensity of the input image:
The computation uses L_GammaCorrectBitmap() function from LEADTOOLS Main API. Please refer to the LEADTOOLS Main API Help file, Version 14 and read the L_GammaCorrectBitmap topic.
LEADTOOLS Main API Help file, Version 14
imgBrightness