test_closed_xldtest_closed_xldTestClosedXldTestClosedXldtest_closed_xld (算子)
名称
test_closed_xldtest_closed_xldTestClosedXldTestClosedXldtest_closed_xld — 测试轮廓或多边形是否闭合。
签名
Herror test_closed_xld(const Hobject XLD, Hlong* IsClosed)
Herror T_test_closed_xld(const Hobject XLD, Htuple* IsClosed)
def test_closed_xld(xld: HObject) -> Sequence[int]
def test_closed_xld_s(xld: HObject) -> int
描述
test_closed_xldtest_closed_xldTestClosedXldTestClosedXldTestClosedXldtest_closed_xld tests each contour or polygon in
XLDXLDXLDXLDXLDxld, whether it is closed and returns the result in
IsClosedIsClosedIsClosedIsClosedisClosedis_closed. If the contour contour or polygon is closed, the
respective return value is 1, otherwise 0. A contour or polygon is
closed, if its last point is equal to its first point.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
XLDXLDXLDXLDXLDxld (输入对象) xld(-array) → objectHXLDHObjectHXLDHobject
Contours or polygons to be tested.
IsClosedIsClosedIsClosedIsClosedisClosedis_closed (输出控制) integer(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Tuple with Boolean numbers.
可能的前趋
gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix
模块
基础