Skip to content

get_lutGetLutGetLutget_lutT_get_lut🔗

Short description🔗

get_lutGetLutGetLutget_lutT_get_lut — Get current look-up-table (lut).

Signature🔗

get_lut( window WindowHandle, out string LookUpTable )void GetLut( const HTuple& WindowHandle, HTuple* LookUpTable )static void HOperatorSet.GetLut( HTuple windowHandle, out HTuple lookUpTable )def get_lut( window_handle: HHandle ) -> Sequence[Union[int, str]]

Herror T_get_lut( const Htuple WindowHandle, Htuple* LookUpTable )

HTuple HWindow::GetLut( ) const

HTuple HWindow.GetLut( )

Description🔗

get_lutGetLut returns the name or the values of the look-up-table (lut) of the window, currently used by disp_imageDispImage (or indirectly by disp_regionDispRegion, etc.) for output. To set a look-up-table use set_lutSetLut. If the current table is a system table without any modification ( by set_fixSetFix ), the name of the table is returned. If it is a modified table, a table read from a file or a table for output with pseudo real colors, the RGB-values of the table are returned.

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.

LookUpTablelookUpTablelook_up_table (output_control) string-array → (string / integer)HTuple (HString / Hlong)HTuple (string / int / long)Sequence[Union[int, str]]Htuple (char* / Hlong)

Name of look-up-table or tuple of RGB-values.

Result🔗

get_lutGetLut returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Combinations with other operators🔗

Combinations

Possible successors

set_lutSetLut

See also

set_lutSetLut

Module🔗

Foundation