【机器视觉】 translate_measure算子
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)題。
- 上一篇: 【机器视觉】 set_fuzzy_mea
- 下一篇: 【机器视觉】 write_measure