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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【机器视觉】 dev_inspect_ctrl算子

發布時間:2024/4/24 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【机器视觉】 dev_inspect_ctrl算子 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

00. 目錄

文章目錄

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

01. 概述

dev_inspect_ctrl — 打開一個窗口來檢查一個或多個控制變量。

02. 簽名

dev_inspect_ctrl( : : Variable : )

03. 描述

ev_inspect_ctrl 打開一個變量檢查對話框來顯示一個或多個控制變量的內容。此操作的結果與從變量窗口中控制變量的上下文菜單中選擇“檢查”相同。

標準變量檢查窗口顯示表格中的值以及一些可選的統計信息。對于某些語義類型,例如矩陣,存在一種特殊表示并默認使用。有關更多信息,請參閱 HDevelop 用戶指南中的“檢查變量”一章。

您可以在 Variable 中傳遞一組變量以打開多個變量的檢查窗口。還可以通過將字符串文字作為元組的第一個元素來覆蓋默認檢查模式:

dev_inspect_ctrl 打開一個變量檢查對話框來顯示一個或多個控制變量的內容。此操作的結果與從變量窗口中控制變量的上下文菜單中選擇“檢查”相同。

標準變量檢查窗口顯示表格中的值以及一些可選的統計信息。對于某些語義類型,例如矩陣,存在一種特殊表示并默認使用。有關更多信息,請參閱 HDevelop 用戶指南中的“檢查變量”一章。

您可以在 Variable 中傳遞一組變量以打開多個變量的檢查窗口。還可以通過將字符串文字作為元組的第一個元素來覆蓋默認檢查模式:

“tuple”:
即使變量的語義類型具有特殊表示,也會在默認檢查窗口中顯示值。

‘plot’:
根據元組索引繪制數值變量的值。

‘plot_xy’:
將數值變量的值繪制為 X-Y 對。變量的數量必須是偶數,每對變量具有相同的長度。

通常,只要變量發生變化,對話框的內容就會更新。但是,更新行為可能會受到運算符 dev_update_var 和更新變量首選項的影響。

可以通過按下關閉按鈕或調用 dev_close_inspect_ctrl 來關閉對話框。

原文描述

dev_inspect_ctrl opens a variable inspect dialog to display the contents of one or more control variables. The result of this action is identical to selecting Inspect from the context menu of control variables in the variable window.

The standard variable inspection window displays the values in a table with some optional statistics. For some semantic types, e.g. matrices, a special representation exists and is used by default. For more information, see the chapter “Inspecting Variables” in the HDevelop User’s Guide.

You can pass a tuple of variables in Variable to open an inspection window for multiple variables. It is also possible to override the default inspection mode by including a string literal as the first element of the tuple:

‘tuple’:
Show the values in the default inspection window even if the semantic type of the variable has a special representation.

‘plot’:
Plot the values of numeric variables against their tuple index.

‘plot_xy’:
Plot the values of numeric variables as X-Y pairs. The number of variables must be even, with each pair of variables having the same length.

Normally, the contents of the dialog will be updated whenever the variables change. However, the update behavior can be influenced by the operator dev_update_var and the Update Variable preference.

The dialog can be closed by pressing the Close button or by calling dev_close_inspect_ctrl.

04. 注意

使用HDevelop的代碼導出功能,為該算子生成的代碼可能與相關的HALCON算子具有不同的行為。 有關將HDevelop圖形算子導出為不同編程語言的代碼的詳細說明,請參閱“HDevelop User’s Guide” 中的Code Export -> General Aspects of Code Generation -> Graphics Windows一章。

05. 參數

WindowHandle (output_control) window → (handle)
Window句柄.

06. 結果

如果指定參數的值正確,則 dev_get_window 返回 2 (H_MSG_TRUE)。 否則會引發異常并返回錯誤代碼。

HDevelop例程

程序示例

read_image (Image,'mreut') threshold (Image, Region, 100, 200) dev_open_window (1, 1, 200, 200, 'black', WindowID1) dev_open_window (1, 220, 200, 200, 'black', WindowID2) dev_get_window (CurrentWindowID) dev_set_window (WindowID1) dev_set_color ('blue') dev_display (Image) dev_display (Region) dev_set_window(CurrentWindowID)

07. 附錄

7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497

總結

以上是生活随笔為你收集整理的【机器视觉】 dev_inspect_ctrl算子的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。