【机器视觉】 dev_set_lut算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數(shù)
- 06. 結(jié)果
- 07. 附錄
01. 概述
dev_set_lut - 設(shè)置“查找表”(lut)。
02. 簽名
dev_set_lut( : : LutName : )
03. 描述
dev_set_lut設(shè)置活動(dòng)圖形窗口的查找表。 查找表定義了將來(lái)自單通道圖像的“灰度值”轉(zhuǎn)換為屏幕上的灰度值或顏色。 query_lut列出所有查找表的名稱。
有關(guān)更多信息,請(qǐng)參閱算子set_lut的說(shuō)明。 但是,與算子set_lut相反,此算子設(shè)置的新的查找表也用于之后打開的所有新圖形窗口。
原文描述:
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.
04. 注意
使用HDevelop的代碼導(dǎo)出功能,為該算子生成的代碼可能與相關(guān)的HALCON算子具有不同的行為。 有關(guān)將HDevelop圖形算子導(dǎo)出為不同編程語(yǔ)言的代碼的詳細(xì)說(shuō)明,請(qǐng)參閱“HDevelop User’s Guide”中的 Code Export -> General Aspects of Code Generation -> Graphics Windows一章。
05. 參數(shù)
LutName (input_control) filename.read → (string)
Name of look-up-table, values of look-up-table (RGB) or file name.
Default value: ‘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’
File extension: .lut
HDevelop例程
watersheds_threshold.hdev Extract watersheds basins using a threshold
radiometric_self_calibration.hdev Perform a radiometric self calibration of two different cameras
histo_2dim.hdev Calculate a two-dimensional histogram (based on two gray-value channels)
gray_moments.hdev Calculate gray-value moments and approximate by a plane
gen_cooc_matrix.hdev Calculate a co-occurrence matrix
display_operators.hdev Visualize results
dev_open_window.hdev Open graphics windows in HDevelop
dem.hdev Extract high objects from a digital elevation model
cooc_feature_matrix.hdev Calculate a co-occurence matrix and derive texture features
程序示例
read_image(Image,'mreut') dev_set_lut('inverse') * For true color only: dev_display(Image)06. 結(jié)果
如果指定參數(shù)的值正確,則dev_set_lut返回2(H_MSG_TRUE)。 否則會(huì)引發(fā)異常并返回錯(cuò)誤代碼。
07. 附錄
7.1 機(jī)器視覺博客匯總
網(wǎng)址:https://dengjin.blog.csdn.net/article/details/116837497
總結(jié)
以上是生活随笔為你收集整理的【机器视觉】 dev_set_lut算子的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 dev_set_line_
- 下一篇: 【机器视觉】 dev_set_paint