提取网格区域的骨架线,然后在生成contour- gen_rectangle2(Rectangle, 300, 200, 0, 100, 100)
- gen_grid_region(RegionGrid, 10, 10, 'lines', 512, 512)
- intersection(RegionGrid, Rectangle, RegionIntersection)
- * dilation_rectangle1(RegionIntersection, RegionDilation, 1, 3)
- * dilation_rectangle1(RegionDilation, RegionDilation, 3, 1)
- skeleton(RegionIntersection, Skeleton)
- gen_contours_skeleton_xld(Skeleton, Contours, 1, 'filter')
- union_collinear_contours_ext_xld(Contours, UnionContours, 10, 1, 2, 0.1, 0, -1, 1, 1, 1, 1, 1, 0, 'attr_keep')
复制代码 |