orientation_points_xldorientation_points_xldOrientationPointsXldOrientationPointsXldorientation_points_xld — Calculate the orientation of contours or polygons treated as point clouds.
The operator orientation_points_xldorientation_points_xldOrientationPointsXldOrientationPointsXldorientation_points_xld calculates the
orientation PhiPhiPhiphiphi of the point clouds given by the contours or
polygons XLDXLDXLDXLDxld (the order of the points in the contour or
polygon is not taken into account). The orientation PhiPhiPhiphiphi is calculated
the same way as in elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXldelliptic_axis_points_xld. If the contour or
polygon is closed (end point = start point), the end point of the contour or
polygon is not taken into account to avoid that it receives twice
the weight of the other points.
In addition, the contour point with maximum distance to the
center of gravity is calculated. If the angle between the
vector and the vector given by
PhiPhiPhiphiphi is
greater than , the value of is added
to the angle. If XLDXLDXLDXLDxld consists of only two points,
PhiPhiPhiphiphi is given by the direction from the first point towards
the second point.
If more than one contour or polygon is passed, the values of the
orientations are stored in a tuple in the same order as the respective
contours or polygons in XLDXLDXLDXLDxld.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).