The operator elliptic_axiselliptic_axisEllipticAxisEllipticAxisEllipticAxiselliptic_axis calculates the radii RaRaRaRarara and
RbRbRbRbrbrb and the orientation PhiPhiPhiPhiphiphi of the ellipse having the
same orientation and the same aspect ratio as the input region in RegionsRegionsRegionsRegionsregionsregions.
Several input regions can be passed as tuples.
RaRaRaRarara represents the main radius of the ellipse whereas the radius
RbRbRbRbrbrb represents the secondary radius of the ellipse.
The orientation of the main axis with regard to the x-axis is returned in
PhiPhiPhiPhiphiphi which is represented in radians.
The principle axis of the ellipse is equivalent to the principle axis of the
inertia moment of the input region.
In the documentation of this chapter (Regions / Features), you can
find an image illustrating regions which vary in their Phi, Ra and Rb.
If more than one region is passed, the results are stored in tuples. The index
of an resulting tuple element corresponds to the index of the respective input
region.
It should be noted that, like for all region-moments-based
operators, the region's pixels are regarded as mathematical,
infinitely small points that are represented by the center of the
pixels. This means that RaRaRaRarara and RbRbRbRbrbrb can assume the
value 0. In particular, for an empty region and a region
containing a single point RaRaRaRarara = RbRbRbRbrbrb = 0
is returned. Furthermore, for regions whose points lie exactly on a
straight line (e.g., one pixel high horizontal regions or one pixel
wide vertical regions), RbRbRbRbrbrb = 0 is returned.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).