|
- read_image (Image, '黑白图.png')
- read_image (Image1, '彩色图.png')
- *Region ROI Region Of Interest
- *根据图像灰度值来提取区域
- threshold (Image1, Region, 128, 255)
- get_image_size (Image1, Width, Height)
- count:=Width*Height
- get_region_runs(Region, Row, ColumnBegin, ColumnEnd)
- *Xld 轮廓提取
- *提取采购图片的亚像素
- edges_color_sub_pix (Image, Edges, 'canny', 1, 20, 40)
- *Contours Polygons
- *生成圆形Xld轮廓
- gen_circle_contour_xld (ROI_0, 287.122, 577.451, 287.294, 0, 6.28318, 'positive', 1)
- *获取轮廓的坐标点信息
- get_contour_xld (ROI_0, Row1, Col)
- gen_polygons_xld (ROI_0, Polygons, 'ramer', 2)
- *获取轮廓生产之后的基本信息
- get_polygon_xld (Polygons, Row2, Col1, Length, Phi)
- *Region和Xld互转
- *区域转化成轮廓
- gen_contour_region_xld (Region, Contours, 'border')
- *轮廓转化成区域
- gen_region_contour_xld (Contours, Region1, 'filled')
复制代码
|
|