User Manual - twentynine
Look-up table in CameraSuiteClient
The
CameraSuiteClient
provides the user the ability to load a pre-defined look-up table in form of an
XML
file
into the application. XML examples for look-up tables are located in the
CameraSuite SDK
installation folder:
$(GIGE_VISION_SDK_PATH)\GenICam_v2_4\xml\custom\
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<values>
<color
channel
=
"Red"
>
<LUT
index
=
"0"
value
=
"230"
/>
<LUT
index
=
"1"
value
=
"57"
/>
<LUT
index
=
"2"
value
=
"28"
/>
...
<LUT
index
=
"254"
value
=
"72"
/>
<LUT
index
=
"255"
value
=
"67"
/>
</color>
<color
channel
=
"Green"
>
<LUT
inde
x
=
"0"
value
=
"208"
/>
<LUT
index
=
"1"
value
=
"96"
/>
<LUT
index
=
"2"
value
=
"253"
/>
...
<LUT
index
=
"254"
value
=
"231"
/>
<LUT
index
=
"255"
value
=
"42"
/>
</color>
<color
channel
=
"Blue"
>
<LUT
index
=
"0"
value
=
"206"
/>
<LUT
index
=
"1"
value
=
"74"
/>
<LUT
index
=
"2"
value
=
"146"
/>
...
<LUT
index
=
"254"
value
=
"250"
/>
<LUT
index
=
"255"
value
=
"182"
/>
</color>
</values>
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<values>
<color
channel
=
"Luminance"
>
<LUT
index
=
"0"
value
=
"230"
/>
<LUT
index
=
"1"
value
=
"57"
/>
<LUT
index
=
"2"
value
=
"28"
/>
...
<LUT
index
=
"254"
value
=
"72"
/>
<LUT
index
=
"255"
value
=
"67"
/>
</color>
</values>
"Greyscale"
Figure 94: User-defined XML file for 8 Bit RGB color (left) or monochrome (right) images
Figure 94 shows an example of a properly formatted XML file which contains look-up table parameters for
8-bit per channel color and monochrome images. The first line indicates the root element values. Element
color with attribute channel indicates the channel for which the parameters will be set. The Child element
LUT with the attribute index indicates the index or input value, the attribute value indicates the output value
for the current index.
117
SMARTEK Vision | User Manual - twentynine | Doc. v1.0.2