set_fixT_set_fixSetFixSetFixset_fix (算子)
名称
set_fixT_set_fixSetFixSetFixset_fix — 设置修复“查找表”(lut)。
警告
set_fixset_fixSetFixSetFixSetFixset_fix 已过时,仅出于向后兼容性考虑而保留。
签名
描述
Behavior for ModeModeModeModemodemode = 'true'"true""true""true""true""true":set_fixset_fixSetFixSetFixSetFixset_fix fixes that pixel lastly ascertained by one of the
operators set_grayset_graySetGraySetGraySetGrayset_gray, set_colorset_colorSetColorSetColorSetColorset_color, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi or
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb
(Remark: Here a pixel is the index within the current look-up-table).
To assign a new color to a fixed pixel set a color or gray value by using
set_colorset_colorSetColorSetColorSetColorset_color, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi or set_grayset_graySetGraySetGraySetGrayset_gray。This makes it possible to define any color (set_colorset_colorSetColorSetColorSetColorset_color), any
gray value (set_grayset_graySetGraySetGraySetGrayset_gray) and any color combination (set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi) at any position of the look-up-table.
ModeModeModeModemodemode set to 'false' reset the fixing. To modify or create a look-up-table
process set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel,
set_fix(::WindowHandle,'true':)set_fix(WindowHandle,"true")SetFix(WindowHandle,"true")SetFix(WindowHandle,"true")SetFix(WindowHandle,"true")set_fix(WindowHandle,"true"),
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb and set_fix(::WindowHandle,'false':)set_fix(WindowHandle,"false")SetFix(WindowHandle,"false")SetFix(WindowHandle,"false")SetFix(WindowHandle,"false")set_fix(WindowHandle,"false") one after another.
注意
As a side effect set_fixset_fixSetFixSetFixSetFixset_fix can change colors of
“non-HALCON windows”.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
ModeModeModeModemodemode (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Mode of fixing.
默认值:
'true'
"true"
"true"
"true"
"true"
"true"
值列表:
'false'"false""false""false""false""false", 'true'"true""true""true""true""true"
结果
set_fixset_fixSetFixSetFixSetFixset_fix returns 2 (
H_MSG_TRUE)
if the window is valid, the hardware
supports a look-up-table and all parameters are correct.否则将抛出异常。
可能的前趋
get_fixget_fixGetFixGetFixGetFixget_fix
可能的后继
set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb
另见
get_fixget_fixGetFixGetFixGetFixget_fix,
set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel,
set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb,
set_colorset_colorSetColorSetColorSetColorset_color,
set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi,
set_grayset_graySetGraySetGraySetGrayset_gray
模块
基础