test_closed_xldtest_closed_xldTestClosedXldTestClosedXldtest_closed_xld (Operator)
Name
test_closed_xldtest_closed_xldTestClosedXldTestClosedXldtest_closed_xld
— Test whether contours or polygons are closed.
Signature
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
Description
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.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
XLDXLDXLDXLDXLDxld
(input_object) xld(-array) →
objectHXLDHObjectHXLDHobject
Contours or polygons to be tested.
IsClosedIsClosedIsClosedIsClosedisClosedis_closed
(output_control) integer(-array) →
HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Tuple with Boolean numbers.
Possible Predecessors
gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXldgen_contour_region_xld
,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix
Module
Foundation