Cheetah Pregius Camera with 10 GigE Vision Interface – User Manual
October 8, 2020
Page
163
of
170
Rev 1.0
Appendix C: Look Up Tables
Creating an LUT Using a Text Editor
You can use any ASCII text editor, such as Notepad or similar, to create a custom LUT. Alternatively,
any spreadsheet program (i.e. Microsoft Excel) can be used by converting the spreadsheet into a
comma delimited (.csv) file. In either case, rename the file to include the .lut file extension.
The .lut file has two main sections: a header and a table. The header section is a free text area of
up to 256 ASCII characters. Each line of the header section must be terminated in a comma. The
table section of the file contains an array of 4096 lines with each line containing an input value
followed by a comma and an output value. The input values represent incoming pixels and the
output values represent what each incoming pixel should be converted into as an output pixel.
The format of the .lut file is as follows:
-- Look Up Table input file example,
-- lines beginning with two dashes are comments,
-- and are ignored by parser,
:Header,
-- this is the text that will get displayed with a 'glh' command,
Function is 'Negative Image',
Created by John Doe,
Date 1/14/20,
:Table,
-- input output,
0,4095
1,4094
2,4093
3,4092
4,4091
:
4095,0