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

歡迎訪問 生活随笔!

生活随笔

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

编程问答

【机器视觉】 dev_set_tool_geometry算子

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

00. 目錄

文章目錄

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

01. 概述

dev_set_tool_geometry - 設置指定tool的位置和大小。

02. 簽名

dev_set_tool_geometry( : : ToolId, Row, Column, Width, Height : )

03. 描述

dev_set_tool_geometry使用ToolId的id來設置tool的位置和尺寸。

傳遞ToolId還有種替代方案,可以傳遞在算子dev_open_tool中使用的名稱。 在這種情況下,任意的符合條件的參數ToolId都會使用到。

參數Row和Column可以用來修改tool的位置。 為了不改變該位置,可以傳遞’default’。

參數Width和Height可以用來修改tool的大小。 為了不改變大小,可以傳遞’default’。 如果Width和Height小于tool的最小尺寸,則使用最小尺寸。

溫馨提示:

如果在此算子中直接傳遞tool名稱,只會作用到最新的打開的tool。

原文描述

dev_set_tool_geometry sets the position and dimension of the tool with the id ToolId.

Instead of using the ToolId, given during opening the tool, you can use the name that has to be used in dev_open_tool. In that case a arbitrary tool, which fits the parameter ToolId, is used.

The parameters Row and Column can be used to modify the position of the tool. In order to unmodify the position ‘default’ can be passed.

The parameters Width and Height can be used to modify the size of the tools. In order to unmodify the size ‘default’ can be passed. If Width and Height are less than the minimum size of the tool the minimum size is used.

04. 注意

此算子不支持代碼導出

05. 參數

ToolId (input_control)   dev_tool → (string)
  Tool identifier.

Row (input_control)    rectangle.origin.y → (integer / string)
  Row index of upper left corner.
  Default value: ‘default’
  Minimum increment: 1
  Recommended increment: 1

Column (input_control)   rectangle.origin.x → (integer / string)
  Column index of upper left corner.
  Default value: ‘default’
  Minimum increment: 1
  Recommended increment: 1

Width (input_control)   rectangle.extent.x → (integer / string)
  Width of the tool.
  Default value: ‘default’
  Minimum increment: 1
  Recommended increment: 1
  Restriction: Width > 0

Height (input_control)    rectangle.extent.y → (integer)
  Height of the tool.
  Default value: ‘default’
  Minimum increment: 1
  Recommended increment: 1
  Restriction: Height > 0

HDevelop例程

dev_open_tool.hdev Open and adjust tools in HDevelop

程序示例

dev_open_tool ('zoom_window', 0, 0, Width, 'default', ToolId) dev_close_tool (ToolId)

06. 結果

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

07. 附錄

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

總結

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

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