Standard FeaturesBasler scout 2139.10 GammaThe gamma correction feature lets you modify the brightness of the pixel values output by thecamera’s sensor to account for a non-linearity in the human perception of brightness. To accomplishthe correction, a gamma correction factor (γ) is applied to the brightness value (Y) of each pixelaccording to the following formula:The formula uses uncorrected and corrected pixel brightnesses that are normalized by themaximum pixel brightness. The maximum pixel brightness equals 255 for 8 bit output and 4095 for12 bit output.When the gamma correction factor is set to 1, the output pixel brightness will not be corrected.A gamma correction factor between 0 and 1 will result in increased overall brightness, and a gammacorrection factor greater than 1 will result in decreased overall brightness.In all cases, black (output pixel brightness equals 0) and white (output pixel brightness equals 255at 8 bit output and 4095 at 12 bit output) will not be corrected.Setting the GammaYou can enable or disable the gamma correction feature by setting the value of the Gamma Enableparameter.When gamma correction is enabled, the correction factor is determined by the value of the Gammaparameter. The Gamma parameter can be set in a range from 0 to 3.99902. So if the Gammaparameter is set to 1.2, for example, the gamma correction factor will be 1.2.You can set the Gamma Enable and Gamma parameter values from within your applicationsoftware by using the Basler pylon API. The following code snippet illustrates using the API to setthe parameter values:// Enable the Gamma featureCamera.GammaEnable.SetValue( true );// Set the Gamma value to 1.2Camera.Gamma.SetValue( 1.2 );For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guideand API Reference.You can also use the Basler pylon Viewer application to easily set the parameters.For more information about the pylon Viewer, see Section 3.1 on page 43.Y correctedY uncorrectedY max---------------------------⎝ ⎠⎛ ⎞ γY max×=