| Table of Contents / XLD / Features | Operators |
select_xld_point — Choose all contours or polygons containing a given point.
The operator select_xld_point selects all contours or polygons from XLDs containing the test point (Row,Column). If the contours or polygons overlap, more than one contour or polygon might contain the point. In this case, all these contours or polygons are returned. If no contour or polygon contains the indicated point, an empty object is returned. It is assumed that the contours or polygons are closed. If this is not the case, select_xld_point will artificially close the contours or polygons. Nevertheless, it is strongly recommended to pass only meaningful and closed contours or polygons in XLDs by calling select_contours_xld with the parameter 'closed' before calling select_xld_point.
If the test point is on the border of a contour or polygon, select_xld_point will deliver unpredictable results, i.e., the contour or polygon may be or may not be added to DestXLDs, depending on arbitrary factors such as how the polygon is oriented with respect to the coordinate system. Note further that for points in the near proximity of the contour or polygon sides, a reliable classification is practically impossible because of numerical inaccuracies.
Contours or polygons to be examined.
All contours or polygons containing the test point.
Line coordinate of the test point.
Default value: 100.0
Column coordinate of the test point.
Default value: 100.0
The operator select_xld_point returns the value 2 (H_MSG_TRUE) if the parameters are correct. The behavior in case of empty input (no input contours or polygons available) is set via the operator set_system('no_object_result',<Result>). If necessary an exception is raised.
select_contours_xld, close_contours_xld, threshold_sub_pix
Foundation
| Table of Contents / XLD / Features | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |