get_part_styleT_get_part_styleGetPartStyleGetPartStyleget_part_style (算子)

名称

get_part_styleT_get_part_styleGetPartStyleGetPartStyleget_part_style — 获取灰度值显示的当前插值模式。

签名

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 (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

StyleStyleStyleStylestylestyle (输出控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

值列表: 0, 1, 2

结果

get_part_styleget_part_styleGetPartStyleGetPartStyleGetPartStyleget_part_style returns 2 ( H_MSG_TRUE) if the window is valid.否则将抛出异常。

可能的后继

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

模块

基础