get_part_styleT_get_part_styleGetPartStyleGetPartStyleget_part_style (算子名称)

名称

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

参数签名

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

描述

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.

运行信息

参数表

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

结果

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

可能的后置算子

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyleset_part_style, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_imagedisp_imageDispImageDispImageDispImagedisp_image

参考其它

set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyleset_part_style, set_partset_partSetPartSetPartSetPartset_part, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_colordisp_colorDispColorDispColorDispColordisp_color

模块

Foundation