| Table of Contents / XLD / Features | Operators |
test_self_intersection_xld — Test XLD contours or polygons for self intersection.
test_self_intersection_xld(XLD : : CloseXLD : DoesIntersect)
test_self_intersection_xld tests whether the input contours or polygons in XLD intersect themselves. The output array DoesIntersect contains a 1 if the corresponding input contour or polygon intersects itself and 0 otherwise.
If the input parameter CloseXLD is set to '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.
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.
Input contours or polygons.
Should the input contours or polygons be closed first?
Default value: 'true'
List of values: 'true', 'false'
1 for contours or polygons with self intersection and 0 otherwise.
Foundation
| Table of Contents / XLD / Features | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |