LUT Setup Procedure
To setup the lookup table processing, proceed as follows:
1. | Disable the lookup table |
2. | Define the lookup table configuration |
3. | Define the content of the lookup table |
4. | Upload the lookup table content into a specified lookup table data set |
5. | Enable the lookup table with a specified data set |

To disable the lookup table:
● | Set the LUTEnable feature to a Off . |

To define the lookup table configuration, set the LUTConfiguration
feature according to:
● | The camera pixel type and bit depth |
● | The required output bit depth. |
Refer to Monochrome Lookup Table Processing for configurations applicable to monochrome pixels.
Note: The lookup table configuration must be set prior to any other action.

Refer to LUT Content Definition for a description of the parametric and tabular methods used for defining a lookup table content.
Note: At least one lookup table set must defined.

To upload a lookup table content in one operation:
● | Select a lookup table data set to access by assigning the appropriate value to the LUTSet feature. For instance
Set1 . |
● | Set the LUTIndex feature to 0. |
● | Write a string of LUTLength values to the LUTValue feature. |
Note: The application may also selectively upload any individual lookup table entry or any block of consecutive lookup table entries.

To read back the lookup table data set in one operation:
● | Select a lookup table data set to access by assigning the appropriate value to the LUTSet feature. For instance
Set1 . |
● | Set the LUTIndex feature to 0. |
● | Set the LUTReadBlockLength feature to the value returned by LUTLength . |
● | Get a string of LUTReadBlockLength values from the LUTValue feature. |
Note: The application may also selectively read any lookup table entry individually or any block of consecutive entries.

To enable the lookup table:
● | Set the LUTEnable feature to a value designating the lookup table data set to use. |

The following script is an example illustrating how to configure the lookup table for monochrome 8-bit to 8-bit operation and to define and upload 4 lookup table data sets using different lookup table definition methods.
function configure(g) {
// Disable the lookup table
g.StreamPort.set('LUTEnable', 'Off');
// Configure the lookup table
g.StreamPort.set('LUTConfiguration', 'M_8x8');
// Build lookup table data set 1: response control
g.StreamPort.set('LUTSet', 'Set1');
require('coaxlink://lut/response-control')(g, { Contrast: 0.94
, Brightness: 0.14
, Visibility: 0.25
, Negative: false });
// Build lookup table data set 2: emphasis
g.StreamPort.set('LUTSet', 'Set2');
require('coaxlink://lut/emphasis')(g, { Emphasis: 0.5
, Negative: true });
// Build lookup table data set 3: threshold
g.StreamPort.set('LUTSet', 'Set3');
require('coaxlink://lut/threshold')(g, { SlicingLevel: 0.5
, SlicingBand: 0.5
, LightResponse: 0.75
, BandResponse: 0.5
, DarkResponse: 0.25 });
// Build lookup table data set 4: table
g.StreamPort.set('LUTSet', 'Set4');
var i;
for (i = 0; i < 256; ++i) {
g.StreamPort.set('LUTIndex', i);
g.StreamPort.set('LUTValue', String(255 - i));
}
}
configure(grabbers[0]);
See also in the GenICam Reference (Data Stream Module)