User`s manual
AW00098504000 Features
Basler ace Camera Link 187
10.8.1 Entering LUT Values and Enabling
the LUT
Entering Values and Enabling the LUT Using Basler pylon
You can enter values into the luminance lookup table (LUT) and enable the use of the lookup table
by doing the following:
Use the LUT Selector to select a lookup table. (Currently there is only one lookup table
available, i.e., the "luminance" lookup table described above.)
Use the LUT Index parameter to select an index number.
Use the LUT Value parameter to enter the substitute value that will be stored at the index
number that you selected in step 2.
Repeat steps 2 and 3 to enter other substitute values into the table as desired.
Use the LUT Enable parameter to enable the table.
You can use the pylon API to set the LUT Selector, the LUT Index parameter, and the LUT Value
parameter from within your application software. The following code snippet illustrates using the API
to set the selector and the parameter values:
// Select the lookup table
Camera.LUTSelector.SetValue( LUTSelector_Luminance );
// Write a lookup table to the device.
// The following lookup table causes an inversion of the sensor values
// ( bright -> dark, dark -> bright )
for ( int i = 0; i < 4096; i += 8 )
{
Camera.LUTIndex.SetValue( i );
Camera.LUTValue.SetValue( 4095 - i );
}
// Enable the lookup table
Camera.LUTEnable.SetValue( true );
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.1 on page 19.