set_lut_styleT_set_lut_styleSetLutStyleSetLutStyleset_lut_style (算子)
名称
set_lut_styleT_set_lut_styleSetLutStyleSetLutStyleset_lut_style — 更改查找表(lut)。
警告
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style 已过时,仅出于向后兼容性考虑而保留。
签名
描述
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style changes the look-up-table (lut) of the device
displaying the valid output window. It has got three parameters:
- Hue:
Rotation of color space,
Hue = 1.9 conforms to a one-time rotation of the
color space.
No changes: Hue = 0.0
Complement colors: Hue = 0.5
- Saturation:
Changes of saturation,
No changes: Saturation = 1.0
Gray value image: Saturation = 0.0
- Intensity:
Changes of intensity,
No changes: Intensity = 1.0
Black image: Intensity = 0.0
Changes affect only the part of an look-up-table that is used for
displaying images. The parameter of modification remain until the next
call of set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style. Calling set_lutset_lutSetLutSetLutSetLutset_lut has got no
effect on these parameters.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
HueHueHueHuehuehue (输入控制) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Modification of color value.
默认值:
0.0
值范围:
0.0
≤
Hue
Hue
Hue
Hue
hue
hue
≤
1.0
SaturationSaturationSaturationSaturationsaturationsaturation (输入控制) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Modification of saturation.
默认值:
1.5
值范围:
0.0
≤
Saturation
Saturation
Saturation
Saturation
saturation
saturation
IntensityIntensityIntensityIntensityintensityintensity (输入控制) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Modification of intensity.
默认值:
1.5
值范围:
0.0
≤
Intensity
Intensity
Intensity
Intensity
intensity
intensity
示例(HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
示例(C)
read_image(&Image,"monkey");
set_lut(WindowHandle,"color1");
do{
get_mbutton(WindowHandle,&Row,&Column,&Button);
Saturation= Row/300.0;
Hue = Column/512.0;
set_lut_style(WindowHandle,Hue,Saturation,1.0);
disp_image(Image);
}
while(Button != 4);
示例(HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
示例(HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
示例(HDevelop)
read_image(Image,'monkey')
dev_set_lut('color1')
repeat
get_mbutton(WindowHandle,Row,Column,Button)
Saturation := Row/300.0
Hue := Column/512.0
set_lut_style(WindowHandle,Hue,Saturation,1.0)
dev_display(Image)
until(Button == 4)
结果
set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style returns 2 (
H_MSG_TRUE)
if the window is valid and the parameter
is correct.否则将抛出异常。
可能的前趋
get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyleget_lut_style
可能的后继
set_lutset_lutSetLutSetLutSetLutset_lut
替代
set_lutset_lutSetLutSetLutSetLutset_lut,
scale_imagescale_imageScaleImageScaleImageScaleImagescale_image
另见
get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyleget_lut_style
模块
基础