【机器视觉】 translate_measure算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數
- 06. 結果
- 07. 附錄
01. 概述
translate_measure - 轉換一個measure對象。
02. 簽名
translate_measure( : : MeasureHandle, Row, Column : )
03. 描述
translate_measure將MeasureHandle代表的measure對象的參考點轉換為點(Row,Column)。 如果measure對象和轉換的measure對象完全位于圖像內,則measure對象以有效的方式移動到新的參考點。 否則,使用gen_measure_rectangle2或gen_measure_arc重新生成measure對象,使用創建measure對象時指定的參數和新參照點。
原文描述:
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.
執行信息
● 多線程類型:可重入(與非獨占算子并行運行)。
● 多線程范圍:全局(可以從任何線程調用)。
● 不并行處理。
該算子修改以下輸入參數的狀態:
MeasureHandle
如果沒有全局同步,此參數的值可能不會在多個線程之間共享
04. 注意
05. 參數
MeasureHandle (input_control, state is modified) measure_id → (integer)
Measure對象句柄。
Row (input_control) point.y → (real / integer)
新參考點的Row坐標。
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)
新參考點的Column坐標。
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. 結果
如果參數值正確,則算子translate_measure返回值2(H_MSG_TRUE)。 否則會引發異常。
HDevelop例程
measure_ic_leads.hdev 測量IC的引線
measure_fill_level.hdev 檢查細頸瓶的液位高度
align_measurements.hdev 使用基于形狀的匹配以便為測量工具調整ROI來檢查單個剃刀刀片。
程序示例
07. 附錄
7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497
總結
以上是生活随笔為你收集整理的【机器视觉】 translate_measure算子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 set_fuzzy_mea
- 下一篇: 【机器视觉】 write_measure