00. 目录

文章目录

  • 00. 目录
  • 01. 概述
  • 02. 签名
  • 03. 描述
  • 04. 注意
  • 05. 参数
  • 06. 结果
  • 07. 附录

01. 概述

gen_measure_arc - 准备提取垂直于圆弧的直边。

02. 签名

gen_measure_arc( : : CenterRow, CenterCol, Radius, AngleStart, AngleExtent, AnnulusRadius, Width, Height, Interpolation : MeasureHandle)

03. 描述

gen_measure_arc准备提取垂直于环形弧的直边。 这里,环形弧表示具有相关宽度的圆弧。 圆弧的中心在CenterRow和CenterCol,其半径为Radius,起始角度为AngleStart,AngleExtent是相对于起始角度的角度范围。 如果AngleExtent> 0,则产生逆时针方向的弧,否则产生顺时针方向的弧。 环形弧的半径,即宽度的一半由AnnulusRadius确定。

在算子measure_pos的文档中描述了边缘提取算法。 如上所述,可以使用不同类型的插值来计算一维灰度值分布。 对于Interpolation=‘bilinear’,测量中的灰度值是从最接近的像素的灰度值,即通过constant插值获得的。 对于Interpolation = ‘bilinear’,使用双线性插值,而对于Interpolation = ‘bicubic’,则使用双三次插值。

要以最佳速度执行实际测量,所有可用于多次测量的计算都已在算子gen_measure_arc中执行。 为此,在MeasureHandle中构造并返回一个优化的数据结构,即所谓的measure对象。 要在其中执行测量的图像的大小必须在参数Width和Height中指定。

系统参数“int_zooming”(见set_system)会影响用于构建measure对象的计算的准确性和速度。 如果’int_zooming’设置为’true’,则内部计算使用定点算术执行,导致执行时间缩短。 但是,这种模式下的几何精度略低。 如果将“int_zooming”设置为“false”,则使用浮点运算执行内部计算,从而导致最大的几何精度,但也会显著增加执行时间。

原文描述

gen_measure_arc prepares the extraction of straight edges which lie perpendicular to an annular arc. Here, annular arc denotes a circular arc with an associated width. The center of the arc is passed in the parameters CenterRow and CenterCol, its radius in Radius, the starting angle in AngleStart, and its angular extent relative to the starting angle in AngleExtent. If AngleExtent > 0, an arc with counterclockwise orientation is generated, otherwise an arc with clockwise orientation. The radius of the annular arc, i.e., half its width, is determined by AnnulusRadius.

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

The edge extraction algorithm is described in the documentation of the operator measure_pos. As discussed there, different types of interpolation can be used for the calculation of the one-dimensional gray value profile. For Interpolation = ‘nearest_neighbor’, the gray values in the measurement are obtained from the gray values of the closest pixel, i.e., by constant interpolation. For Interpolation = ‘bilinear’, bilinear interpolation is used, while for Interpolation = ‘bicubic’, bicubic interpolation is used.

To perform the actual measurement at optimal speed, all computations that can be used for multiple measurements are already performed in the operator gen_measure_arc. For this, an optimized data structure, a so-called measure object, is constructed and returned in MeasureHandle. The size of the images in which measurements will be performed must be specified in the parameters Width and Height.

The system parameter ‘int_zooming’ (see set_system) affects the accuracy and speed of the calculations used to construct the measure object. If ‘int_zooming’ is set to ‘true’, the internal calculations are performed using fixed point arithmetic, leading to much shorter execution times. However, the geometric accuracy is slightly lower in this mode. If ‘int_zooming’ is set to ‘false’, the internal calculations are performed using floating point arithmetic, leading to the maximum geometric accuracy, but also to significantly increased execution times.

执行信息

●  多线程类型:可重入(与非独占算子并行运行)。
●  多线程范围:全局(可以从任何线程调用)。
●  不并行处理。

该算子返回一个句柄。 请注意,即使将此句柄用作输入参数,该句柄类型的实例的状态也可能被特定的算子所改变。

04. 注意

请注意,使用双线性或双三次插值时,不仅矩形的测量,而且矩形周围的边缘必须在图像中。 对于双线性插值而言,边缘的宽度(在所有四个方向上)必须至少有一个像素,对于双三次插值必须至少有两个像素。 对于不满足此条件的投影线,不计算灰度值。 因此,在这些位置上不能提取边缘。

05. 参数

CenterRow (input_control)   point.y → (real / integer)
  圆弧中心的Row坐标。
  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 ≤ CenterRow ≤ 511.0 (lin)
  Minimum increment: 1.0
  Recommended increment: 10.0

CenterCol (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 ≤ CenterCol ≤ 511.0 (lin)
  Minimum increment: 1.0
  Recommended increment: 10.0

Radius (input_control)    number → (real / integer)
  弧的半径。
  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 ≤ Radius ≤ 511.0 (lin)
  Minimum increment: 1.0
  Recommended increment: 10.0

AngleStart (input_control)    angle.rad → (real / integer)
  圆弧的开始角度,按弧度表示。
  Default value: 0.0
  Suggested values: -3.14159, -2.35619, -1.57080, -0.78540, 0.0, 0.78540, 1.57080, 2.35619, 3.14159
  Typical range of values: -3.14159 ≤ AngleStart ≤ 3.14159 (lin)
  Minimum increment: 0.03142
  Recommended increment: 0.31416

AngleExtent (input_control)    angle.rad → (real / integer)
  圆弧的角度范围,以弧度表示。
  Default value: 6.28318
  Suggested values: -6.28318, -5.49779, -4.71239, -3.92699, -3.14159, -2.35619, -1.57080, -0.78540, 0.78540, 1.57080, 2.35619, 3.14159, 3.92699, 4.71239, 5.49779, 6.28318
  Typical range of values: -6.28318 ≤ AngleExtent ≤ 6.28318 (lin)
  Minimum increment: 0.03142
  Recommended increment: 0.31416
  Restriction: AngleExtent != 0.0

AnnulusRadius (input_control)    number → (real / integer)
  环的半径(半宽)。
  Default value: 10.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 ≤ AnnulusRadius ≤ 511.0 (lin)
  Minimum increment: 1.0
  Recommended increment: 10.0
  Restriction: AnnulusRadius <= Radius

Width (input_control)    extent.x → (integer)
  要处理的图像的宽度。
  Default value: 512
  Suggested values: 128, 160, 192, 256, 320, 384, 512, 640, 768
  Typical range of values: 0 ≤ Width ≤ 1024 (lin)
  Minimum increment: 1
  Recommended increment: 16
Height (input_control)    extent.y → (integer)

要处理的图像的高度。
  Default value: 512
  Suggested values: 120, 128, 144, 240, 256, 288, 480, 512, 576
  Typical range of values: 0 ≤ Height ≤ 1024 (lin)
  Minimum increment: 1
  Recommended increment: 16

Interpolation (input_control)    string → (string)
  要使用的插值类型。
  Default value: ‘nearest_neighbor’
  List of values: ‘bicubic’, ‘bilinear’, ‘nearest_neighbor’

MeasureHandle (output_control)    measure_id → (integer)
  Measure对象的句柄

06. 结果

如果参数值正确,则运算符gen_measure_arc返回2(H_MSG_TRUE)。 否则会引发异常。

HDevelop例程

measure_ring.hdev    用圆形measure对象确定齿轮的宽度
measure_arc.hdev     测量沿着圆弧的金属部件的宽度
gen_measure_arc.hdev  测量垂直于给定弧的边

程序示例


07. 附录

7.1 机器视觉博客汇总
网址:https://dengjin.blog.csdn.net/article/details/116837497

【机器视觉】 gen_measure_arc算子相关推荐

  1. 机器视觉 边缘检测算子

    1.实验目的 利用opencv python实现对下图实现边缘检测算子. 2.实验过程 (1)在python安装opencv库, pip install opencv-python. (2)在pyth ...

  2. 【机器视觉】机器视觉博客汇总

    00. 目录 文章目录 00. 目录 01. 机器视觉概述 02. 机器视觉环境搭建 03. Halcon初级教程 04. Halcon中级教程 05. Halcon高级教程 06. Halcon与Q ...

  3. 拉普拉斯噪声公式_高斯拉普拉斯算子(Laplace of Gaussian)

    高斯拉普拉斯(Laplace of Gaussian) Laplace算子作为一种优秀的边缘检测算子,在边缘检测中得到了广泛的应用.该方法通过对图像 求图像的二阶倒数的零交叉点来实现边缘的检测,公式表 ...

  4. 【机器视觉】 translate_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 translate_measure - 转换一个m ...

  5. 【机器视觉】 set_fuzzy_measure_norm_pair算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 set_fuzzy_measure_norm_pa ...

  6. 【机器视觉】 set_fuzzy_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 set_fuzzy_measure - 指定一个模 ...

  7. 【机器视觉】 measure_pos算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 measure_pos - 提取垂直于矩形或环形弧 ...

  8. 【机器视觉】 gen_measure_rectangle2算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 gen_measure_rectangle2 - ...

  9. 【机器视觉】 close_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 close_measure - 删除一个measu ...

最新文章

  1. cs嵌html5页面,在.cs c#.net中包含HTML页面
  2. QML与Qt C++ 交互机制探讨与总结
  3. Android之加载外部dex
  4. python序列类型-Python内置序列类型之集合类型详解
  5. 《python3网络爬虫开发实战》--基本库的使用
  6. 课程设计:大学生信息管理系统
  7. makefile中的wildcard
  8. HTML——校友会(bootstrap)
  9. 机器人学从理论、设计到建模仿真零基础入门教程(硬核、偏零基础)
  10. centos7设置静态IP地址方法
  11. 郭金东金浦集团荣登“2019中国民营企业500强”和“2019中国民营企业制造业500强”榜单
  12. Integration using Feynman technique
  13. NFS配置(RHCE考试题)
  14. 有得必有失,你该把技术做多细?
  15. putty 下载地址
  16. createjs基础入门
  17. 百度地图搜索功能的实现--new BMap.LocalSearch
  18. c语言指定外设访问宽度 强制,《C语言程序设计》第2章 简单的C程序设计.ppt
  19. html5复合选择器,传智播客解读Css基本选择器与复合选择器
  20. 零售药店计算机操作内容培训,零售药店的年度培训记录.docx

热门文章

  1. java 容器_JAVA的容器
  2. 计算机考研深圳大学和广东工业大学,报考人数过万!这些院校已成为考研“重灾区”...
  3. java代码走读,WebRTCDemo.apk代码走读(一):初始化
  4. html 编辑xml,编辑XML\HTML时取消浏览“amp”
  5. python图像开闭区间_自动开闭器不良故障案例分析
  6. Halcon Example - 圆弧测量对象的使用
  7. Learning the Vi Editor, 6th Edition学习笔记(0)
  8. Win10添加或删除开机自启项
  9. 手游运营重度化,抓好论坛专区“预热战场”
  10. 剑指offer-包含min函数的栈