Basler A400K Manual do Utilizador Página 96

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 95
Features AW00118501000
88 Basler racer Camera Link
Changing the Values in the Luminance Lookup Table and Enabling the Table
Using Basler pylon
You can change the values in the luminance lookup table (LUT) and enable the use of the lookup
table by doing the following:
1. Use the LUT Selector to select a lookup table. (Currently there is only one lookup table avail-
able, i.e., the "luminance" lookup table described above.)
2. Use the LUT Index parameter to select an index number.
3. Use the LUT Value parameter to enter the substitute value that will be stored at the index
number that you selected in step 2.
4. Repeat steps 2 and 3 to enter other substitute values into the table as desired.
5. Use the LUT Enable parameter to enable the table.
You can set the LUT Selector, the LUT Index parameter and the LUT Value parameter from within
your application software by using the pylon API. 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 );
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
Changing the Values in the Luminance Lookup Table and Enabling the Table
Using Direct Register Access
When setting up the luminance lookup table via direct register access, two registers are involved:
the LUT register and the LUT Enable register.
The LUT register is simply an array register that holds the 4096 12 bit values described earlier
in this section. As a first step to using the lookup table feature. You must populate this register
with 12 bit values.
Once the LUT register has been populated, you can enable the use of the lookup table by
setting the value of the LUT Enable register to 1 (enabled).
For more information about direct register access, see Section 3.2 on page 16.
Vista de página 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 129 130

Comentários a estes Manuais

Sem comentários