length_xldlength_xldLengthXldLengthXldlength_xld (算子名称)
名称
length_xldlength_xldLengthXldLengthXldlength_xld — Length of contours or polygons.
参数签名
Herror length_xld(const Hobject XLD, double* Length)
Herror T_length_xld(const Hobject XLD, Htuple* Length)
def length_xld(xld: HObject) -> Sequence[float]
def length_xld_s(xld: HObject) -> float
描述
length_xldlength_xldLengthXldLengthXldLengthXldlength_xld calculates the length of the contours or
polygons XLDXLDXLDXLDXLDxld. The length is calculated as the sum of the
Euclidean distances of successive points on the contour or polygon.
If more than one contour or polygon is passed, the results are stored
in tuples in the same order as the respective contours or polygons in
XLDXLDXLDXLDXLDxld.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 在元组级别自动并行化。
参数表
XLDXLDXLDXLDXLDxld (input_object) xld(-array) → objectHXLDHObjectHXLDHobject
Contours or polygons to be examined.
LengthLengthLengthLengthlengthlength (output_control) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Length of the contour or polygon.
Assertion:
Length >= 0
Complexity
Let n be the number of points of the contour or polygon.
Then the run time is O(n).
结果
length_xldlength_xldLengthXldLengthXldLengthXldlength_xld returns 2 (
H_MSG_TRUE)
if the input is not empty. If
the input is empty the behavior can be set via
set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>). If
necessary, an exception is raised.
可能的前置算子
gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld,
smooth_contours_xldsmooth_contours_xldSmoothContoursXldSmoothContoursXldSmoothContoursXldsmooth_contours_xld,
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld
参考其它
area_center_xldarea_center_xldAreaCenterXldAreaCenterXldAreaCenterXldarea_center_xld,
moments_any_xldmoments_any_xldMomentsAnyXldMomentsAnyXldMomentsAnyXldmoments_any_xld,
moments_xldmoments_xldMomentsXldMomentsXldMomentsXldmoments_xld,
contlengthcontlengthContlengthContlengthContlengthcontlength
模块
Foundation