halcon命令中文注解

上传人:ji****72 文档编号:37542778 上传时间:2018-04-18 格式:DOC 页数:17 大小:165.88KB
返回 下载 相关 举报
halcon命令中文注解_第1页
第1页 / 共17页
halcon命令中文注解_第2页
第2页 / 共17页
halcon命令中文注解_第3页
第3页 / 共17页
halcon命令中文注解_第4页
第4页 / 共17页
halcon命令中文注解_第5页
第5页 / 共17页
点击查看更多>>
资源描述

《halcon命令中文注解》由会员分享,可在线阅读,更多相关《halcon命令中文注解(17页珍藏版)》请在金锄头文库上搜索。

1、read_image (WaferDies, wafer_dies) read_image (图片在程序中的名称, 图片在计算机中的名称)reopen_window_fit (WaferDies, 700, 0, 0, WindowHandle) reopen_window_fit (图片在程序中的名称, 700, 0, 0, WindowHandle)init_font (WindowHandle, -1, 2) 和字体有关的一个命令get_window_extents (WindowHandle, _, _, WindowWidth, WindowHeight) 设置窗口大小和位置dev_

2、update_all (off) 把所有的 dev_update 从on设到off,这似乎是设定文本显示的滚动与否dev_set_draw (margin) 定义区域填充模式。如果 DrawMode 设置为fill,输出地区被填满,如果设置为margin, 只有轮廓显示出来。get_image_pointer1 (WaferDies, _, _, Width, Height) get_image_pointer1 ( Image : : : Pointer, Type, Width, Height )Access the pointer of a channel.The operator ge

3、t_image_pointer1 returns a pointer to the first channel of the image Image. Additionally, the image type (Type = byte, int2, uint2, etc.) and the image size (width and height) are returned. Consequently, a direct access to the image data in the HALCON database via the pointer is possible from the pr

4、ogramming language in which HALCON is used. An image is stored in HALCON linearized in row major order, i.e., line by line.指令 get_image_pointer1 返回一个图像 WaferDies 的第一通道的指针。此外,图像类型 (Type =byte,INT2,uint2等)和图像尺寸(宽度和高度)返回。因此,直接通过访问 指针来获取 HALCON 的数据库中的图像数据,在使用了 HALCON 语言的程序中是可行的。 图像在 HALCON 以线性行模式存储,也就是一

5、行一行的。dev_display (WaferDies) 在活动图形窗口显示一个图像对象(图像,地区或 XLD) 。这相当于对一个窗口内的变量 变双击图标。Comment 周1: 输出量write_message (WindowHandle, -1, -1, Image of a wafer, true) write_message (WindowHandle, WindowHeight - 30, -1, Press Run to continue, true) 在窗口上写文字stop () 停止* * 1. Determine the size of the dies by using a

6、uto correlation 确定大小用自相关 * rft_generic (WaferDies, ImageFFT, to_freq, none, complex, Width) rft_generic ( Image : ImageFFT : Direction, Norm, ResultType, Width : )rft_generic 用于计算快速傅立叶变换输入图像的形象。相反,fft_generic,fft_image 和 fft_image_inv,一个事实,即在正向输入图像变换是实值图像(即不是一个复杂的图像) 使用。在这种情况下,复杂的输出图像具有冗余。在图像的右半部分的值

7、是在图像的左半 部分的相应值的复共轭。因此,运行时和可节省内存仅计算和存储的复杂图像的左半边。 与 resultType 参数可用于指定结果的图像类型逆变换(方向=from_freq) 。在正变换(方向 =to_freq) ,与 resultType 必须设置为complex。参数方向确定是否应进行变换到频域空间 域或进入回来。为方向=to_freq输入图像必须有一个实数型,即一个复杂的图像可能无法 用作输入。所有图片,可以变成一个真正的图像类型转换类型的支持。在这种情况下,输 出是一个尺寸(W / 2 +1)* H,其中 W 和 H 是宽度和高度复杂的图像输入图像。在这种 模式下,指数-1

8、用于变换(见 fft_generic) 。为方向=from_freq,输入图像必须是复杂的。 在这种情况下,输入图像的大小不足以决定输出图像的大小。这必须通过设置宽度为一个 有效的值,即 2 *的 W - 2 或 2 *的 W - 1,其中 W 是复杂的图像的宽度。在这种模式下, 指数 1 用于在变换。正火因子可设置规范,并且可以利用的量,none, sqrt和n。用户必 须确保参数相一致。这意味着,用于规范因素向前和向后转换必须宽* h 时产量成倍增加。correlation_fft (ImageFFT, ImageFFT, CorrelationFFT) correlation_fft (

9、 ImageFFT1, ImageFFT2 : ImageCorrelation : : )correlation_fft 计算了傅立叶变换在频域输入图像的相关性。其相关的计算方法是乘以的 ImageFFT2 复共轭 ImageFFT1。应当指出,为了实现在空间域的相关性的正确比例,经营 者 fft_generic 或 Norm =none必须用于正变换和 fft_generic 或 rft_generic 与 Norm =n为 rft_generic 逆变换。如果 ImageFFT1 和 ImageFFT2 含有相同数量的图像,相应的图像相关 成对。否则,ImageFFT2 只能包含一个单一

10、的形象。在这种情况下,为每一个相关性的Comment 周2: #在这里创建并输出了 CorrelationComment 周3: #在这里创建并输出了 RectangleImageFFT1 与 ImageFFT2 形象。rft_generic (CorrelationFFT, Correlation, from_freq, n, real, Width)* Exclude local maxima at the image border. It is sufficient * to extract the maxima in the upper left quarter of the imag

11、e because * the autocorrelation is an even function. 排除局部极大值在图像边界。它足以在上提取图像的左边季度极大,因为自相关是偶函数。gen_rectangle1 (Rectangle, 1, 1, Height/2, Width/2)gen_rectangle1 ( : Rectangle : Row1, Column1, Row2, Column2 : )Create a rectangle parallel to the coordinate axes.The operator gen_rectangle1 generates one

12、or more rectangles parallel to the coordinate axes which are described by the upper left corner (Row1, Column1) and the lower right corner (Row2, Column2). More than one region can be created by passing a tuple of corner points. The coordinate system runs from (0,0) (upper left corner) to (Width-1,H

13、eight-1). See get_system and reset_obj_db in this context. 创建一个矩形平行于坐标轴。 操作员 gen_rectangle1生成一个或多个矩形平行于坐标是由左上角(Row1, Column1) 和右下角 (Row2, Column2)中所述轴。一个以上的地区可以通过创建一个元组的角点。系 统运行的坐标从(0,0) (左上角)至(宽度- 1,身高- 1) 。看到这方面 get_system 和 reset_obj_db。reduce_domain (Correlation, Rectangle, CorrelationReduced) r

14、educe_domain ( Image, Region : ImageReduced : : )Reduce the domain of an image.The operator reduce_domain reduces the definition domain of the given image to the indicated region. The new definition domain is calculated as the intersection of the old definition domain with the region. Thus, the new

15、definition domain can be a subset of the region. The size of the matrix is not changed.降低图像的领域。 操作员 reduce_domain 减少了给定图像的定义域到指定的区域。新的定义域是计算为与该 地区的旧定义域的交集。因此,新的定义域可以是该地区的一个子集。矩阵的大小是没有 改变。 * * Extract the local maxima of the auto correlation function 提取的自相关函数的局部极大值local_max_sub_pix (CorrelationReduce

16、d, gauss, 2, 5000000, Row, Col) local_max_sub_pix ( Image : : Filter, Sigma, Threshold : Row, Col )Subpixel precise detection of local maxima in an image.local_max_sub_pix extracts local maxima from the image Image with subpixel precision. To do so, in each point the input image is approximated by a quadratic polynomial in x and y and subsequently the polynomial is examined for local maxima. The partial deriva

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号