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

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

生活随笔

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

编程问答

【机器视觉】 translate_measure算子

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

00. 目錄

文章目錄

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

01. 概述

translate_measure - 轉(zhuǎn)換一個(gè)measure對(duì)象。

02. 簽名

translate_measure( : : MeasureHandle, Row, Column : )

03. 描述

translate_measure將MeasureHandle代表的measure對(duì)象的參考點(diǎn)轉(zhuǎn)換為點(diǎn)(Row,Column)。 如果measure對(duì)象和轉(zhuǎn)換的measure對(duì)象完全位于圖像內(nèi),則measure對(duì)象以有效的方式移動(dòng)到新的參考點(diǎn)。 否則,使用gen_measure_rectangle2或gen_measure_arc重新生成measure對(duì)象,使用創(chuàng)建measure對(duì)象時(shí)指定的參數(shù)和新參照點(diǎn)。

原文描述

translate_measure translates the reference point of the measure object given by MeasureHandle to the point (Row,Column). If the measure object and the translated measure object lie completely within the image, the measure object is shifted to the new reference point in an efficient manner. Otherwise, the measure object is generated anew with gen_measure_rectangle2 or gen_measure_arc using the parameters that were specified when the measure object was created and the new reference point.

For an explanation of the concept of 1D measuring see the introduction of chapter 1D Measuring.

執(zhí)行信息

●  多線(xiàn)程類(lèi)型:可重入(與非獨(dú)占算子并行運(yùn)行)。
●  多線(xiàn)程范圍:全局(可以從任何線(xiàn)程調(diào)用)。
●  不并行處理。

該算子修改以下輸入?yún)?shù)的狀態(tài):

MeasureHandle

如果沒(méi)有全局同步,此參數(shù)的值可能不會(huì)在多個(gè)線(xiàn)程之間共享

04. 注意

05. 參數(shù)

MeasureHandle (input_control, state is modified)   measure_id → (integer)
  Measure對(duì)象句柄。

Row (input_control)    point.y → (real / integer)
  新參考點(diǎn)的Row坐標(biāo)。
  Default value: 50.0
  Suggested values: 10.0, 20.0, 50.0, 100.0, 200.0, 300.0, 400.0, 500.0
  Typical range of values: 0.0 ≤ Row ≤ 511.0 (lin)
  Minimum increment: 1.0
  Recommended increment: 10.0

Column (input_control)    point.x → (real / integer)
  新參考點(diǎn)的Column坐標(biāo)。
  Default value: 100.0
  Suggested values: 10.0, 20.0, 50.0, 100.0, 200.0, 300.0, 400.0, 500.0
  Typical range of values: 0.0 ≤ Column ≤ 511.0 (lin)
  Minimum increment: 1.0
  Recommended increment: 10.0

06. 結(jié)果

如果參數(shù)值正確,則算子translate_measure返回值2(H_MSG_TRUE)。 否則會(huì)引發(fā)異常。

HDevelop例程

measure_ic_leads.hdev    測(cè)量IC的引線(xiàn)
measure_fill_level.hdev    檢查細(xì)頸瓶的液位高度
align_measurements.hdev 使用基于形狀的匹配以便為測(cè)量工具調(diào)整ROI來(lái)檢查單個(gè)剃刀刀片。

程序示例

07. 附錄

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

總結(jié)

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

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