If m is the number of points in ContourFrom, and n the number of points in ContourTo, then distance_contours_xld has complexity O(mlog(n)) for 'point_to_point', and O(mn) for 'point_to_segment'. In case the template contour ContourTo is repeatedly used, the operators create_...
The parameters DistanceMin and DistanceMax return the result of the calculation. Note that the result corresponds to the distances between the points and the segments of the contour and not the distances between the points and the base points of the contour (see also distance_contours_xld). ...
DistancePc(ho_Contours, hv_Row, hv_Column,&hv_DistanceMin, &hv_DistanceMax);//计算点和轮廓之间的距离//计算一个或多个点与单个轮廓之间的距离//参数1:输入xld轮廓//参数2:点的行坐标//参数3:点的列坐标//参数4:返回点与轮廓之间的最小距离//参数5:返回点与轮廓之间的最大距离GenRegionPoints(&ho...
sort_contours_xld (Edges, SortedContours, 'upper_left', 'true', 'column') select_obj (Edges, ObjectSelected, 1) select_obj (Edges, ObjectSelected1, 2) get_contour_xld (ObjectSelected, Row, Col) get_contour_xld (ObjectSelected1, Row3, Col1) distance_cc (ObjectSelected, ObjectSelected1...
*根据区域创建XLD轮廓 Row:=[10,15] Column:=[10,15] distance_pc (Contours, Row, Column, DistanceMin, DistanceMax) *计算点和轮廓之间的距离 *计算一个或多个点与单个轮廓之间的距离 *参数1:输入xld轮廓 *参数2:点的行坐标 *参数3:点的列坐标 ...
//亚像素边缘 SortContoursXld(ho_Edges, &ho_SortedContours, "upper_left", "true", "column"); SelectObj(ho_Edges, &ho_ObjectSelected, 1); SelectObj(ho_Edges, &ho_ObjectSelected1, 2); GetContourXld(ho_ObjectSelected, &hv_Row, &hv_Col); GetContourXld(ho_ObjectSelected1, &hv_Row3,...
Default value:'fast_point_to_segment' List of values:'fast_point_to_segment','point_to_point','point_to_segment' DistanceMin(output_control)number(-array)→(real) Minimum distance between the two contours. distance_cc_minreturns 2 (H_MSG_TRUE)....
Minimum distance between both contours.DistanceMax (output_control) real(-array) → (real) Maximum distance between both contours.Example (C)gen_contour_polygon_rounded_xld(Cont1, [0,100,100,0,0], [0,0,100,100,0], [50,50,50,50,50], 0.5); gen_contour_polygon_rounded_xld(Cont2,...
sort_contours_xld (Edges, SortedContours, 'upper_left', 'true', 'column') select_obj (Edges, ObjectSelected, 1) select_obj (Edges, ObjectSelected1, 2) get_contour_xld (ObjectSelected, Row, Col) get_contour_xld (ObjectSelected1, Row3, Col1) ...
*根据区域创建XLD轮廓 Row:=[10,15] Column:=[10,15] distance_pc (Contours, Row, Column, DistanceMin, DistanceMax) *计算点和轮廓之间的距离 *计算一个或多个点与单个轮廓之间的距离 *参数1:输入xld轮廓 *参数2:点的行坐标 *参数3:点的列坐标 ...