Skip to content

get_part_styleGetPartStyleGetPartStyleget_part_styleT_get_part_style🔗

Short description🔗

get_part_styleGetPartStyleGetPartStyleget_part_styleT_get_part_style — Get the current interpolation mode for gray value display.

Signature🔗

get_part_style( window WindowHandle, out integer Style )void GetPartStyle( const HTuple& WindowHandle, HTuple* Style )static void HOperatorSet.GetPartStyle( HTuple windowHandle, out HTuple style )def get_part_style( window_handle: HHandle ) -> int

Herror T_get_part_style( const Htuple WindowHandle, Htuple* Style )

Hlong HWindow::GetPartStyle( ) const

int HWindow.GetPartStyle( )

Description🔗

get_part_styleGetPartStyle returns the interpolation mode used for displaying an image part in the window. An interpolation takes place if the output window is larger than the image format or the image output format (see set_partSetPart). HALCON supports three interpolation modes:

  • 0 no interpolation (low quality, very fast).

  • 1 unweighted interpolation (average quality and computation time)

  • 2 weighted interpolation (high quality, slow)

The current mode can be changed with set_part_styleSetPartStyle.

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.

Stylestylestyle (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Interpolation mode for image display: 0 (fast, low quality) to 2 (slow, high quality).

List of values: 0, 1, 20, 1, 2

Result🔗

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

Combinations with other operators🔗

Combinations

Possible successors

set_part_styleSetPartStyle, disp_regionDispRegion, disp_imageDispImage

See also

set_part_styleSetPartStyle, set_partSetPart, disp_imageDispImage, disp_colorDispColor

Module🔗

Foundation