Skip to content

dev_set_lut๐Ÿ”—

Short description๐Ÿ”—

dev_set_lut โ€” Set โ€œlook-up-tableโ€ (lut).

Signature๐Ÿ”—

dev_set_lut( filename.read LutName )

Description๐Ÿ”—

dev_set_lut sets the look-up-table of the active graphics window. A look-up-table defines the transformation of a โ€œgray valueโ€ from an one-channel-image into a gray value or color on the screen. query_lut lists the names of all look-up-tables.

For more information see the description of the operator set_lut. However, in contrast to that operator the new look-up-table is also used for all new graphics windows that are opened afterwards.

Attention๐Ÿ”—

Using the code export feature of HDevelop, the code that is generated for this operator may have a different behavior than the related HALCON operator. For a detailed description of the code export of HDevelop graphics operators into the different programming languages see in the โ€œHDevelop User's Guideโ€ the chapter Code Export -> General Aspects of Code Generation -> Graphics Windows.

Parameters๐Ÿ”—

LutName (input_control) filename.read(-array) โ†’ (string / real / integer)

Name of look-up-table, values of look-up-table (RGB) or file name.

Default: 'default'
Suggested values: 'default', 'linear', 'inverse', 'sqr', 'inv_sqr', 'cube', 'inv_cube', 'sqrt', 'inv_sqrt', 'cubic_root', 'inv_cubic_root', 'color1', 'color2', 'color3', 'color4', 'three', 'six', 'twelve', 'twenty_four', 'rainbow', 'temperature', 'cyclic_gray', 'cyclic_temperature', 'hsi', 'change1', 'change2', 'change3', 'jet', 'inverse_jet', 'batlow', 'inverse_batlow'
File extension: .lut

Example๐Ÿ”—

(HDevelop)

read_image(Image,'mreut')
dev_set_lut('inverse')
* For true color only:
dev_display(Image)

Result๐Ÿ”—

If the values of the specified parameters are correct, dev_set_lut returns 2 (H_MSG_TRUE). Otherwise, an exception is raised and an error code returned.

Combinations with other operators๐Ÿ”—

Combinations

Possible successors

dev_display

See also

set_lut

Module๐Ÿ”—

Foundation