Cheetah Python Cameras User Manual | CoaXPress (CXP) Interface
August 27, 2019
Page
78
of
86
Rev 1.0
Creating Look-up Tables
Overview
A Look-up Table (LUT) is provided with each camera. You can create your own LUT file using
any standard ASCII text editor, Microsoft Notepad, or Microsoft Excel. Additionally, you can
use any spreadsheet or mathematical program capable of generating a comma delimited
(.csv) file.
Using an ASCII Text Editor
A custom LUT can be prepared using any ASCII text editor, such as “Notepad” or similar.
Alternatively, any spreadsheet program (i.e. Microsoft Excel) can be used by converting the
spreadsheet into a comma delimited (.csv) file. In either case, the file must be renamed 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/09,
:Table,
-- input output,
0,4095
1,4094
2,4093
3,4092
4,4091
:
4095,0