halcon命令中文注解

上传人:m**** 文档编号:561118004 上传时间:2023-08-22 格式:DOC 页数:19 大小:652KB
返回 下载 相关 举报
halcon命令中文注解_第1页
第1页 / 共19页
halcon命令中文注解_第2页
第2页 / 共19页
halcon命令中文注解_第3页
第3页 / 共19页
halcon命令中文注解_第4页
第4页 / 共19页
halcon命令中文注解_第5页
第5页 / 共19页
点击查看更多>>
资源描述

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

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_upd

2、ate_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 get_image_pointe

3、r1 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 andheight) are returned. Consequently, a direct access to the image data in the HALCON database via the pointer is possible from the programming lang

4、uage 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 以线性行模式存储,也就是一行一行的。dev_displ

5、ay (WaferDies)在活动图形窗口显示一个图像对象(图像,地区或XLD )。这相当于对一个窗口内的变量变双击图标。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 auto correlation确定大小用自相关*rft_generic (

6、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 用于变换(见 fft_generic )。为方向 =from_freq ,输

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

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

10、ric (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 image because* the autocorrelation is an even function.排除局部极大值在图像边界。它足以在上提取图像的左边季度极大,因为自相关是偶函数。gen_rectangle1 (Rectangle, 1

11、, 1, Height/2, Width/2)gen_rectangle1(:Rectangle:Row1,Column1, Row2, Column2 : )Create a rectangle parallel to the coordinate axes.The operator gen_rectangle1generates one or more rectangles parallel to the coordinate axeswhich are described by the upper left corner ( Row1 , Column1 ) and the lower

12、right corner ( Row2,Column2). More than one region can becreated by passing a tuple ofcorner points. Thecoordinate system runs from (0,0) (upper left corner) to (Width-1,Height-1). Seeget_systemand reset_obj_dbin this context.创建一个矩形平行于坐标轴。操作员gen_rectangle1生成一个或多个矩形平行于坐标是由左上角(Row1 , Column1)和右下角(Row2

13、 , Column2 )中所述轴。一个以上的地区可以通过创建一个元组的角点。系统运行的坐标从(0,0 )(左上角)至(宽度- 1,身高 - 1 )。看到这方面 get_system和reset_obj_db 。reduce_domain (Correlation, Rectangle, CorrelationReduced)reduce_domain(Image,Region:ImageReduced : : )Reduce the domain of an image.The operator reduce_domainreduces the definition domain of the

14、 given image to the indicatedregion. The new definition domain is calculated as the intersection of the old definition domain with the region. Thus, the new definition domain can be a subset of the region. The size of the matrix is not changed.降低图像的领域。操作员 reduce_domain 减少了给定图像的定义域到指定的区域。 新的定义域是计算为与该地区的旧定义域的交集。 因此,新的定义域可以是该地区的一个子集。 矩阵的大小是没有改变。* Extract the local maxima

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

当前位置:首页 > 行业资料 > 国内外标准规范

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