AW00123409000 Features
Basler ace USB 3.0 285
Setting the Light Source Presets
You can use the Light Source Preset parameter value to set the correction for a specific light source
or chose no correction. You can set the parameter value from within your application software by
using the Basler pylon API. The following code snippet illustrates using the API to set the selector
and the parameter value:
// Set the LightSourcePreset parameter value to "Off" (no correction)
camera.LightSourcePreset.SetValue(LightSourcePreset_Off);
//Set the LightSourcePreset parameter value to "Daylight5000K"
camera.LightSourcePreset.SetValue(LightSourcePreset_Daylight5000K);
// Set the LightSourcePreset parameter value to "Daylight6500K"
camera.LightSourcePreset.SetValue(LightSourcePreset_Daylight6500K);
// Set the LightSourcePreset parameter value to "Tungsten2800K"
camera.LightSourcePreset.SetValue(LightSourcePreset_Tungsten2800K);
When using a light source preset for a color camera, a suitable gamma correction
value of approximately 0.45 is automatically applied. The value corresponds
approximately to an sRGB gamma correction value.
When using a light source preset (Daylight 5000 K, Daylight 6500 K or
Tungsten 2800 K) do not to use the gamma correction feature because this would
distort the effect of the light source preset. Make sure the Gamma parameter value
is set to 1. A Gamma parameter value other than 1, combined with the automatic
gamma correction caused by the light source preset, would result in an overall
gamma correction value different from 0.45 and therefore in incorrect colors.
For more information about the Gamma Correction feature, see Section 7.13 on
page 270.
After having selected a light source preset, carry out white balance to achieve
optimum white balance.