ClassesClasses | | Operators

test_closed_xldtest_closed_xldTestClosedXldTestClosedXld (Operator)

Name

test_closed_xldtest_closed_xldTestClosedXldTestClosedXld — 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()

Description

test_closed_xldtest_closed_xldTestClosedXldTestClosedXldTestClosedXld tests each contour or polygon in XLDXLDXLDXLDXLD, whether it is closed and returns the result in IsClosedIsClosedIsClosedIsClosedisClosed. 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

Parameters

XLDXLDXLDXLDXLD (input_object)  xld(-array) objectHXLDHXLDHobject

Contours or polygons to be tested.

IsClosedIsClosedIsClosedIsClosedisClosed (output_control)  integer(-array) HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Tuple with boolean numbers.

Possible Predecessors

gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldGenContourRegionXld, edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPix

Module

Foundation


ClassesClasses | | Operators