Skip to content

set_lut_styleSetLutStyleSetLutStyleset_lut_styleT_set_lut_style🔗

Short description🔗

set_lut_styleSetLutStyleSetLutStyleset_lut_styleT_set_lut_style — Changing the look-up-table (lut).

Warning🔗

set_lut_styleSetLutStyle is obsolete and is only provided for reasons of backward compatibility.

Signature🔗

set_lut_style( window WindowHandle, real Hue, real Saturation, real Intensity )void SetLutStyle( const HTuple& WindowHandle, const HTuple& Hue, const HTuple& Saturation, const HTuple& Intensity )static void HOperatorSet.SetLutStyle( HTuple windowHandle, HTuple hue, HTuple saturation, HTuple intensity )def set_lut_style( window_handle: HHandle, hue: float, saturation: float, intensity: float ) -> None

Herror T_set_lut_style( const Htuple WindowHandle, const Htuple Hue, const Htuple Saturation, const Htuple Intensity )

void HWindow::SetLutStyle( double Hue, double Saturation, double Intensity ) const

void HWindow.SetLutStyle( double hue, double saturation, double intensity )

Description🔗

set_lut_styleSetLutStyle 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_styleSetLutStyle. Calling set_lutSetLut has got no effect on these parameters.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Huehuehue (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

Modification of color value.

Default: 0.00.0
Value range: 0.0 ≤ Hue ≤ 1.0

Saturationsaturationsaturation (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

Modification of saturation.

Default: 1.51.5
Value range: 0.0 ≤ Saturation

Intensityintensityintensity (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

Modification of intensity.

Default: 1.51.5
Value range: 0.0 ≤ Intensity

Example🔗

(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)\;

Result🔗

set_lut_styleSetLutStyle returns 2 (H_MSG_TRUE) if the window is valid and the parameter is correct. Otherwise an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

get_lut_styleGetLutStyle

Possible successors

set_lutSetLut

Alternatives

set_lutSetLut, scale_imageScaleImage

See also

get_lut_styleGetLutStyle

Module🔗

Foundation