get_part_style — 获取灰度值显示的当前插值模式。
get_part_style( : : WindowHandle : Style)
get_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_part). HALCON supports
three interpolation modes:
no interpolation (low quality, very fast).
unweighted interpolation (average quality and computation time)
weighted interpolation (high quality, slow)
The current mode can be changed with set_part_style。
WindowHandle (输入控制) window → (handle)
窗口句柄。
Style (输出控制) integer → (integer)
Interpolation mode for image display: 0 (fast, low quality) to 2 (slow, high quality).
值列表: 0, 1, 2
get_part_style returns 2 (
H_MSG_TRUE)
if the window is valid.否则将抛出异常。
set_part_style,
disp_region,
disp_image
set_part_style,
set_part,
disp_image,
disp_color
基础