【机器视觉】 dev_update_window算子

00. 目录

文章目录

    • 00. 目录
    • 01. 概述
    • 02. 签名
    • 03. 描述
    • 04. 注意
    • 05. 参数
    • 06. 结果
    • 07. 附录

01. 概述

dev_update_window - 在程序运行过程中开启或关闭自动将图形输出对象输出到图形窗口。

02. 签名

dev_update_window( : : DisplayMode : )

03. 描述

dev_update_window指定是否在活动图形窗口中显示由算子调用返回的所有图标对象(DisplayMode =‘on’ - 默认)或不显示(DisplayMode =‘off’)。

此选项对单步模式下的对象输出没有影响。 执行单个算子之后,图标输出对象始终显示在活动图形窗口中。

如果只在图形窗口中显示选定的对象,则应该将此选项设置为’off’。 在这种情况下,对象应该由dev_display显示。

为了测量一系列算子的运行时间,应关闭所有更新选项,以减少HDevelop中GUI更新的运行时间的影响。 为此,可以使用算子dev_update_pc,dev_update_time,dev_update_var和dev_update_window或者函数dev_update_on和dev_update_off。

这个选项也可以通过Preferences对话框进行控制:Edit - > Preferences - > Runtime Settings - > Update Variables

原文描述:

dev_update_window specifies whether all iconic objects that are returned by an operator call have to be displayed in the active graphics window (DisplayMode = ‘on’—default) or not (DisplayMode = ‘off’).

This option has no influence on the object output in single step mode. After the execution of a single operator the iconic output objects are always displayed in the active graphics window.

This option should be set to ‘off’, if only selected objects should to be displayed in the graphics window. In this case the objects should be displayed by dev_display.

For measuring the execution time of a sequence of operators all update options should be switched off in order to reduce the influence of the runtime of GUI updates in HDevelop. For this the operators dev_update_pc, dev_update_time, dev_update_var, and dev_update_window or the procedures dev_update_on and dev_update_off can be used.

This option can also be controlled via the Preferences dialog: Edit -> Preferences -> Runtime Settings -> Update Window.

04. 注意

此算子不支持代码导出。

05. 参数

DisplayMode (input_control) string → (string)
Mode for graphic output.

Default value: ‘off’
List of values: ‘off’, ‘on’

06. 结果

如果指定参数的值正确,则dev_update_window返回2(H_MSG_TRUE)。 否则会引发异常并返回错误代码。

HDevelop例程

find_pads.hdev Find pads on a die
display_operators.hdev Visualize results
dev_clear_window.hdev Clear a graphics window in HDevelop
clip.hdev Determine the position and orientation of clips
affine_transform_image.hdev Apply affine transformations to an image

07. 附录

7.1 机器视觉博客汇总
网址:https://dengjin.blog.csdn.net/article/details/116837497


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部