Operator Reference

test_closed_xldtest_closed_xldTestClosedXldTestClosedXldtest_closed_xld (Operator)

test_closed_xldtest_closed_xldTestClosedXldTestClosedXldtest_closed_xld — Test whether contours or polygons are closed.

Signature

test_closed_xld(XLD : : : IsClosed)

Herror test_closed_xld(const Hobject XLD, Hlong* IsClosed)

Herror T_test_closed_xld(const Hobject XLD, Htuple* IsClosed)

void TestClosedXld(const HObject& XLD, HTuple* IsClosed)

HTuple HXLD::TestClosedXld() const

static void HOperatorSet.TestClosedXld(HObject XLD, out HTuple isClosed)

HTuple HXLD.TestClosedXld()

def test_closed_xld(xld: HObject) -> Sequence[int]

def test_closed_xld_s(xld: HObject) -> int

Description

test_closed_xldtest_closed_xldTestClosedXldTestClosedXldtest_closed_xld tests each contour or polygon in XLDXLDXLDXLDxld, whether it is closed and returns the result in IsClosedIsClosedIsClosedisClosedis_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

XLDXLDXLDXLDxld (input_object)  xld(-array) objectHXLDHObjectHObjectHobject

Contours or polygons to be tested.

IsClosedIsClosedIsClosedisClosedis_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_xldGenContourRegionXldGenContourRegionXldgen_contour_region_xld, edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixedges_sub_pix

Module

Foundation