User`s manual

AW00089316000 Color Creation and Enhancement
Basler ace GigE 173
The third parameter associated with matrix color transformation is the Color Transformation Matrix
Factor parameter. This parameter determines how strong an effect the matrix correction function
will have on the colors output by the camera. The parameter setting is a floating point value that can
range from 0 to 1. When the parameter value is set to 0, matrix correction will have no effect. When
the value is set to 1, matrix correction will have its maximum effect.
As an alternative, the Color Transformation Matrix Factor parameter value can each be entered as
an integer value on a scale ranging from 0 to 65536. This integer range maps linearly to the floating
point range with 0 being equivalent to 0 and 65536 being equivalent to 1. The integer values can
be entered using the Color transformation Matrix Factor Raw parameter.
Setting Matrix Transformation
You can set the Color Transformation Selector and Light Source Selector parameters from within
your application software by using the Basler pylon API. The following code snippet illustrates using
the API to set the parameter values:
// Select the color transformation type
Camera.ColorTransformationSelector.SetValue
( ColorTransformationSelector_YUVtoRGB );
// Set the light source selector for daylight (at about 6500K)
Camera.LightSourceSelector.SetValue
( LightSourceSelector_Daylight6500K );
// Set the matrix correction factor
Camera.ColorTransformationMatrixFactor.SetValue( 0.50 );
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and the pylon Viewer, see Section 3 on page 39.
When the Light Source Selector parameter is set to custom, the Color
Transformation Matrix Factor parameter will not be available.