get_part_styleT_get_part_styleGetPartStyleGetPartStyleget_part_style (Operator)

Name

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

Signature

get_part_style( : : WindowHandle : Style)

Herror T_get_part_style(const Htuple WindowHandle, Htuple* Style)

void GetPartStyle(const HTuple& WindowHandle, HTuple* Style)

Hlong HWindow::GetPartStyle() const

static void HOperatorSet.GetPartStyle(HTuple windowHandle, out HTuple style)

int HWindow.GetPartStyle()

def get_part_style(window_handle: HHandle) -> int

Description

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyleget_part_style 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_partset_partSetPartSetPartSetPartset_part). 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_styleset_part_styleSetPartStyleSetPartStyleSetPartStyleset_part_style.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

StyleStyleStyleStylestylestyle (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

List of values: 0, 1, 2

Result

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyleget_part_style returns TRUE if the window is valid. Otherwise an exception is raised.

Possible Successors

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyleset_part_style, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_imagedisp_imageDispImageDispImageDispImagedisp_image

See also

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyleset_part_style, set_partset_partSetPartSetPartSetPartset_part, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_colordisp_colorDispColorDispColorDispColordisp_color

Module

Foundation