将骨骼生成轮廓gen_contour_skeleton_xld 算子:gen_contours_skeleton_xld(Skeleton : Contours : Length, Mode : ) 示例:gen_contours_skeleton_xld (Skeleton1, Contours2, 1, 'filter') Skeleton1(输入对象):输入骨架对象 Contours2(输出对象):输出转为轮廓对象 ...
halcon-length_xld返回xld轮廓的总长度 在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/8.jpg') rgb1_to_gray (Image, GrayImage) edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10) *亚像素边缘 length_xld (Edges, Length) *返回xld轮廓的总长度 *参数1:xld轮廓或轮廓...
1.length_xld(XLD : : : Length) length_xld计算轮廓或多边形XLD的长度。 长度计算为轮廓线或多边形上连续点的欧氏距离之和。 如果传递了多个轮廓或多边形, 结果将按照与XLD中相应的轮廓或多边形相同的顺序存储在元组中。 2.orientation_xld(XLD : : : Phi) orientation_xld计算每个输入轮廓或多边形的方向。 该...
生成矩形轮廓gen_rectangle2_contour_xld 算子:gen_rectangle2_contour_xld( : Rectangle : Row, Column, Phi, Length1, Length2 : ) 示例:gen_rectangle2_contour_xld (Rectangle6, 500, 500, 45, 100, 200) Rectangle6(输出对象):输出轮廓对象 500(输入控制参数1):矩形中心行坐标 500(输入控制参数2):...
length_xld (UnionContours, Length) *选择长度最长的那一个 *sort_index(Length)[|Length| - 1] 是取最大的长度的index,因为select_obj的index参数是从1开始的,所以需要加1 select_obj (UnionContours, LongestContour, sort_index(Length)[|Length| - 1] + 1) ...
union_cocircular_contours_xld (ContoursSplit, UnionContours, 0.9, 0.5, 0.5, 200, 50, 50, 'true', 1) length_xld (UnionContours, Length) select_obj (UnionContours, LongestContour, sort_index(Length)[|Length| - 1] + 1) fit_circle_contour_xld (LongestContour, 'ahuber', -1, 0, 0, ...
length_xld (Operator) Namelength_xld— Length of contours or polygons.Signaturelength_xld(XLD : : : Length) Descriptionlength_xld calculates the length of the contours or polygons XLD. The length is calculated as the sum of the Euclidian distances of successive points on the contour or ...
fit_ellipse_contour_xld用椭圆圆弧或闭合椭圆逼近XLD轮廓线。它不执行输入轮廓的分割。因此,必须确保每个...
将骨骼生成轮廓gen_contour_skeleton_xld 算子:gen_contours_skeleton_xld(Skeleton : Contours : Length, Mode : ) 示例:gen_contours_skeleton_xld (Skeleton1, Contours2, 1, 'filter') Skeleton1(输入对象):输入骨架对象 Contours2(输出对象):输出转为轮廓对象 ...
get_polygon_xld (Polygons, Row, Col, Length, Phi) gen_region_points (Region, Row, Col) 4、Region、XLD、Polygon之间的相关转换 当我们检测不连续的划痕缺陷时,通过边缘检测算子得到的xld也是不连续的。这时我们可以将不连续的xld合并为一个整体,但是我们将这个合并后的xld转换为region后,region已经不是一...