gen_circle (Circle, 200, 200, 100.5)
gen_ellipse_contour_xld (ContEllipse, 200, 200, 0, 100, 50, 0, 6.28318, ‘positive’, 1.5)
gen_circle_contour_xld (ContCircle, 200, 200, 100, 0, 6.28318, ‘positive’, 1)
*生成多边形
gen_polygons_xld (ContCircle, Polygons, ‘ramer’, 35)
*测试轮廓是否自相交
test_self_intersection_xld (ContCircle, ‘true’, DoesIntersect)
*获得轮廓的面积,中心和点集
area_center_xld (Polygons, Area, Row, Column, PointOrder)
*获得区域的中心和面积
area_center (Circle, Area1, Row1, Column1)
*根据点生成多变形轮廓
gen_contour_polygon_xld (Contour, [249,350,225,249], [299,299,349,299])
area_center_xld (Contour, Area2, Row2, Column2, PointOrder1)
test_self_intersection_xld (Contour, ‘true’, DoesIntersect1)
*以轮廓作为点云求中心he面积
area_center_points_xld (Contour, Area3, Row3, Column3)
*获得多边形的定点,边长和角度
get_polygon_xld (Polygons, Row4, Col, Length, Phi)
dev_open_window (0, 0, 512, 512, ‘black’, WindowHandle)
gen_circle_contour_xld (ContCircle1, 290, 260, 100, 0, 1, ‘positive’, 1)
query_contour_global_attribs_xld (ContCircle1, Attribs)
*计算拟合直线
regress_contours_xld (ContCircle1, RegressContours, ‘no’, 1)
query_contour_global_attribs_xld (RegressContours, Attribs1)
get_contour_global_attrib_xld (RegressContours, ‘regr_norm_row’, Attrib)
get_regress_params_xld (RegressContours, Length1, Nx, Ny, Dist, Fpx, Fpy, Lpx, Lpy, Mean, Deviation)
regress_contours_xld (RegressContours, RegressContours1, ‘drop’, 1)