Gamma (dart E)#
Using the Feature#
How It Works#
The camera applies a gamma correction value (γ) to the brightness value of each pixel according to the following formula (red pixel value (R) of a color camera shown as an example):
The maximum pixel value (Rmax) equals, e.g., 255 for 8-bit pixel formats or 1 023 for 10-bit pixel formats.
Configuring Gamma Correction#
To configure gamma correction, set the
Gamma parameter to the desired value. The parameter's value range is 0 to ≈4. - Gamma = 1: The overall brightness remains unchanged. - Gamma < 1: The overall brightness increases. - Gamma > 1: The overall brightness decreases.
In all cases, black pixels (brightness = 0) and white pixels (brightness = maximum) will not be adjusted.
If you enable gamma correction and the pixel format is set to a 12-bit pixel format, some image information will be lost. Pixel data output will still be 12-bit, but the pixel values will be interpolated during the gamma correction process.
Setting the Color Space#
On daA…mci camera modules, the
BslColorSpace parameter is available. It allows you to select one of the following gamma correction modes:
RGB: No additional gamma correction value is applied.
sRGB: The image brightness is optimized for display on an sRGB monitor. A gamma correction value of approximately 0.4 is applied, the
Gammaparameter becomes read-only, and the
Gammaparameter value is ignored.
You can also use the pylon Viewer to easily set the parameters.