
® 16k CL
31
UM 16kCL – REVC – 11/14
e2v semiconductors SAS 2014
6.3.6
Look Up Table
The User can define an upload a LUT in the Camera that can be used at the end of the processing.
The LUT is defined as a correspondence between each of the 4096 gray levels (in 12 bits) with another outputted value.
For example, a “negative” or “reverse” LUT is the following equivalence :
Real value
Output value
0
4095
1
4094
2
4093
…
Then the size of each value is 12bits but the exchanges with the Application/PC are done on 16 bits :
For 4096 gray levels (from 0 to 4095) the total file size for a LUT is 8Ko.
If this LUT is enables, the “Contrast Expansion” feature (digital Gain and Offset) will be disabled
LUT Enable (
LUTEnable
) :
Enable the LUT and sizable the Digital Gain / Offset
This function is available in the LUT section :.
Read function : “r lute” : Get the LUT status
Returned by the camera : 0 is LUT disabled, 1 if enabled
Write function : “w lute <val>” : <val> is 0 for disable, 1 for enable
Upload / Download the LUT coefficients
:
Direct access to the LUT coefficients for reading or writing. In CommCam,
the User can access to a specific interface by clicking on “click for extended control” in the LUT section :
Read function : “r lutc <addr>” : Read 128 LUT coefficients starting from address <addr> from 0 to 4095-128.
Returned value is the concatenation in hexadecimal of individual LUT values, without space between values.
(one unsigned short per coefficient)
Write function :” w lutc <addr><val> : Write 128 LUT coefficients starting from address <addr> form 0 to 4095-128.
<val> is the concatenation in hexadecimal of individual LUT values, without space between values. (one unsigned
short per coefficient)
Save & Restore LUT in User Banks : The LUT loaded in RAM memory can be saved or restored in/from 4 User banks.
These functions are available in the LUT/Save & Restore LUT Settings section :
o
Restore LUT from Bank (
RestoreLUTFromBank
) :
Restore the LUT from a User Bank in the current RAM Memory.
Read function : “r rlut” : Get the current LUT Bank used
Returned by the camera : 1 to 4 for User banks
Write function : “w rlut <val>” : Bank <val> 1 to 4 for User banks
o
Save LUT in User Bank (
SaveLUTToBank
) :
Save current LUT in User Bank
Can not de read
Write function : “w slut <val>” : User bank <val> if from 1 to 4.
The bank number <val> is given in (
LUTSetSelector
)