Skip to content

test_closed_xldTestClosedXldTestClosedXldtest_closed_xldtest_closed_xld🔗

Short description🔗

test_closed_xldTestClosedXldTestClosedXldtest_closed_xldtest_closed_xld — Test whether contours or polygons are closed.

Signature🔗

test_closed_xld( xld XLD, out integer IsClosed )void TestClosedXld( const HObject& XLD, HTuple* IsClosed )static void HOperatorSet.TestClosedXld( HObject XLD, out HTuple isClosed )def test_closed_xld( xld: HObject ) -> Sequence[int]

def test_closed_xld_s( xld: HObject ) -> intHerror test_closed_xld( const Hobject XLD, Hlong* IsClosed )

Herror T_test_closed_xld( const Hobject XLD, Htuple* IsClosed )

HTuple HXLD::TestClosedXld( ) const

HTuple HXLD.TestClosedXld( )

Description🔗

test_closed_xldTestClosedXld tests each contour or polygon in XLDXLDxld, whether it is closed and returns the result in IsClosedisClosedis_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🔗

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🔗

XLDXLDxld (input_object) xld(-array) → objectHObjectHXLDHObjectHobject

Contours or polygons to be tested.

IsClosedisClosedis_closed (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Tuple with Boolean numbers.

Combinations with other operators🔗

Combinations

Possible predecessors

gen_contour_region_xldGenContourRegionXld, edges_sub_pixEdgesSubPix

Module🔗

Foundation