The operator orientation_xldorientation_xldOrientationXldOrientationXldorientation_xld calculates the orientation
(PhiPhiPhiphiphi) of each input contour or polygon (XLDXLDXLDXLDxld).
The operator is based on elliptic_axis_xldelliptic_axis_xldEllipticAxisXldEllipticAxisXldelliptic_axis_xld.
In addition, the contour respectively polygon
point with maximum distance to the center of gravity is calculated. If the
column coordinate of this point is less than the column coordinate
of the center of gravity the value of is added to the
angle. It is assumed that the contours or polygons are closed. If
this is not the case orientation_xldorientation_xldOrientationXldOrientationXldorientation_xld will artificially close
the contours or polygons.
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).