摘要: *以灰度值大于Threshold区域和灰度值小于Threshold的区域为分界点提取亚像素精密轮廓 threshold_sub_pix (Image, Border, Fenjie)segment_contours_xld (Border, Edges, 'lines', PingHua, 4, 2 阅读全文
posted @ 2023-09-20 17:04 QuincyYi 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 求顶点和最高点的源码如下: *求取区域顶点,方法1dev_close_window()read_image (Image1, 'testpic/求取区域顶点.png')dev_open_window_fit_image (Image1, 0, 0, -1, -1, WindowHandle)poin 阅读全文
posted @ 2023-09-20 14:37 QuincyYi 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 在Halcon中,Region和XLD之间可以彼此转换。但这种转换并不是“无损”的,XLD可以是不闭合的,但是Region一定是闭合的。因此,如果将不闭合的XLD转为Region,然后再转回XLD,那么转换后的XLD和原先的XLD就有了一定的区别。 言归正传,先说说Region的缩放。 一、Regi 阅读全文
posted @ 2023-09-20 14:22 QuincyYi 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 一、区域(region)转轮廓(xld): 法一: 直接转换 gen_contour_region_xld (SelectedRegions, Contours, 'border')应该场所:拟合部分边缘提取和轮廓分割之间会用到,因为轮廓分割需输入xld轮廓,而用boundary提取区域边缘输出的是 阅读全文
posted @ 2023-09-20 14:20 QuincyYi 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: 一、Region的缩放 Region的缩放很简单,有zoom_region算子,其签名如下,其中ScaleWidth, ScaleHeight是宽、高的缩放比例因子: zoom_region(Region : RegionZoom : ScaleWidth, ScaleHeight : ) 缩放的时 阅读全文
posted @ 2023-09-20 14:17 QuincyYi 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 一、预备知识:类型介绍 5 1、 Image类型: 5 2、 Region类型: 5 3、 XLD分为两种:边缘轮廓(xld contour)和多边形(xld polygon) 5 1) 、XLD Contour 5 2) 、XLD Polygon 5 二、转换规律: 5 三、转换算子 5 1、ge 阅读全文
posted @ 2023-09-20 14:08 QuincyYi 阅读(454) 评论(0) 推荐(0) 编辑