ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

【机器视觉】 translate_measure算子

2021-07-06 17:59:58  阅读:189  来源: 互联网

标签:object point Column measure 算子 translate Row


00. 目录

文章目录

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

标签:object,point,Column,measure,算子,translate,Row
来源: https://blog.csdn.net/dengjin20104042056/article/details/118526153

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有