elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXldelliptic_axis_points_xld — Parameters of the equivalent ellipse of contours or polygons treated as
point clouds.
The operator elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXldelliptic_axis_points_xld calculates the radii
(RaRaRarara, RbRbRbrbrb) and the orientation (PhiPhiPhiphiphi, in radians)
of the ellipse
having the same orientation and the same aspect ratio as the point cloud
given by the contour or polygon
XLDXLDXLDXLDxld (i.e., the order of the points in the contour or
polygon is not taken into account). 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.
If more than one contour or polygon is passed, the results are stored
in tuples 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).
Angle between the major axis and the column axis
(radians).
Assertion:
- pi / 2 < Phi && Phi <= pi / 2
Complexity
Let n be the number of points of the contour or polygon.
Then the run time is O(n).
Result
elliptic_axis_points_xldelliptic_axis_points_xldEllipticAxisPointsXldEllipticAxisPointsXldelliptic_axis_points_xld returns 2 (
H_MSG_TRUE)
if the input is not
empty. If the input is empty the behavior can be set via
set_system(::'no_object_result',<Result>:). If necessary,
an exception is raised.