HALCON Reference Manual 10.0.2
Table of Contents / XLD / Features ClassesClassesClasses | | | Operators

test_self_intersection_xldtest_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXld (Operator)

Name

test_self_intersection_xldtest_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXld — Test XLD contours or polygons for self intersection.

Signature

test_self_intersection_xld(XLD : : CloseXLD : DoesIntersect)

Herror test_self_intersection_xld(const Hobject XLD, const char* CloseXLD, Hlong* DoesIntersect)

Herror T_test_self_intersection_xld(const Hobject XLD, const Htuple CloseXLD, Htuple* DoesIntersect)

Herror test_self_intersection_xld(Hobject XLD, const HTuple& CloseXLD, Hlong* DoesIntersect)

Herror test_self_intersection_xld(Hobject XLD, const HTuple& CloseXLD, HTuple* DoesIntersect)

Hlong HXLD::TestSelfIntersectionXld(const HTuple& CloseXLD) const

HTuple HXLDArray::TestSelfIntersectionXld(const HTuple& CloseXLD) const

void HOperatorSetX.TestSelfIntersectionXld(
[in] IHUntypedObjectX* XLD, [in] VARIANT CloseXLD, [out] VARIANT* DoesIntersect)

VARIANT HXLDX.TestSelfIntersectionXld([in] BSTR CloseXLD)

VARIANT HXLDContX.TestSelfIntersectionXld([in] BSTR CloseXLD)

VARIANT HXLDPolyX.TestSelfIntersectionXld([in] BSTR CloseXLD)

VARIANT HXLDParaX.TestSelfIntersectionXld([in] BSTR CloseXLD)

VARIANT HXLDModParaX.TestSelfIntersectionXld([in] BSTR CloseXLD)

VARIANT HXLDExtParaX.TestSelfIntersectionXld([in] BSTR CloseXLD)

static void HOperatorSet.TestSelfIntersectionXld(HObject XLD, HTuple closeXLD, out HTuple doesIntersect)

HTuple HXLD.TestSelfIntersectionXld(string closeXLD)

Description

test_self_intersection_xldtest_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXld tests whether the input contours or polygons in XLDXLDXLDXLDXLD intersect themselves. The output array DoesIntersectDoesIntersectDoesIntersectDoesIntersectdoesIntersect contains a 1 if the corresponding input contour or polygon intersects itself and 0 otherwise.

If the input parameter CloseXLDCloseXLDCloseXLDCloseXLDcloseXLD is set to 'true'"true""true""true""true", open contours or polygons are closed before the check is performed by simply connecting the first and the last contour or polygon point with a line segment.

If a contour or polygon only touches itself, it is not considered as self intersecting.

Attention

A contour or polygon touches itself if a contour or polygon point lies exactly on a contour or polygon segment. However, whether a point lies exactly on a contour or polygon segment or not can practically not be decided because of numerical reasons.

Parallelization

Parameters

XLDXLDXLDXLDXLD (input_object)  xld(-array) objectHXLDHXLDHXLDXHobject

Input contours or polygons.

CloseXLDCloseXLDCloseXLDCloseXLDcloseXLD (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Should the input contours or polygons be closed first?

Default value: 'true' "true" "true" "true" "true"

List of values: 'true'"true""true""true""true", 'false'"false""false""false""false"

DoesIntersectDoesIntersectDoesIntersectDoesIntersectdoesIntersect (output_control)  number(-array) HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

1 for contours or polygons with self intersection and 0 otherwise.

Module

Foundation


Table of Contents / XLD / Features ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH