日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

【机器视觉】 dev_update_var算子

發(fā)布時(shí)間:2024/4/24 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【机器视觉】 dev_update_var算子 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

00. 目錄

文章目錄

    • 00. 目錄
    • 01. 概述
    • 02. 簽名
    • 03. 描述
    • 04. 注意
    • 05. 參數(shù)
    • 06. 結(jié)果
    • 07. 附錄

01. 概述

dev_update_var - 開啟或關(guān)閉程序運(yùn)行過(guò)程中變量窗口的更新。

02. 簽名

dev_update_var( : : DisplayMode : )

03. 描述

dev_update_var指定程序運(yùn)行期間變量窗口的行為。 如果DisplayMode被設(shè)置為默認(rèn)的VarRef(‘on’),則變量窗口(圖形和控制變量)的內(nèi)容每次被程序修改時(shí)都會(huì)被更新。

如果模式為’off’,則控制變量的值和圖形變量的圖形在運(yùn)行停止之前不被更新。

為了測(cè)量一系列算子的運(yùn)行時(shí)間,應(yīng)關(guān)閉所有更新選項(xiàng),以減少HDevelop中GUI更新的運(yùn)行時(shí)間的影響。 為此,可以使用算子dev_update_pc,dev_update_time,dev_update_var和dev_update_window或者函數(shù)dev_update_on和dev_update_off。

這個(gè)選項(xiàng)也可以通過(guò)Preferences對(duì)話框進(jìn)行控制:Edit - > Preferences - > Runtime Settings - > Update Variables。

原文描述

dev_update_var specifies the behaviour of the variable window during program execution. If DisplayMode is set to ‘on’, which is the default, the contents of the variable window (iconic and control variables) is updated each time a variable is modified by the program.

If the mode is ‘off’ the values of the control variables and the icons of the iconic variables are not updated before the execution stops.

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 Variables.

04. 注意

此算子不支持代碼導(dǎo)出。

05. 參數(shù)

DisplayMode (input_control)   string → (string)
  Mode for graphic output.
  Default value: ‘off’
  List of values: ‘off’, ‘on’

HDevelop例程

find_pads.hdev Find pads on a die
display_operators.hdev Visualize results
affine_transform_image.hdev Apply affine transformations to an image

程序示例

06. 結(jié)果

如果指定參數(shù)的值正確,則dev_update_var返回2(H_MSG_TRUE)。 否則會(huì)引發(fā)異常并返回錯(cuò)誤代碼。

07. 附錄

7.1 機(jī)器視覺博客匯總
網(wǎng)址:https://dengjin.blog.csdn.net/article/details/116837497

總結(jié)

以上是生活随笔為你收集整理的【机器视觉】 dev_update_var算子的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。