elliptic_axis_grayπ
Short descriptionπ
elliptic_axis_gray β Compute the orientation and major axes of a region in a gray value
image.
Signatureπ
elliptic_axis_gray( region Regions, image Image, out real Ra, out real Rb, out angle.rad Phi )
Descriptionπ
The operator elliptic_axis_gray calculates the length of the
axes Ra and Rb and the orientation Phi of the
ellipse having the βsame orientationβ and the βaspect ratioβ as the
input region in Regions. Therefore, gray value moments which are
derived from the Image are used.
Several input regions can be passed in Regions as tuples. The
length of the major axis Ra and the minor axis Rb
as well as the orientation of the major axis with regard to the
x-axis (Phi) are determined. The angle is returned in
radians. The calculation is done analogously to
elliptic_axis. The only difference is that in
elliptic_axis_gray the gray value moments are used instead
of the region moments. For the definition of the gray value
moments, see area_center_gray.
Note, that in the case where the gray value area is zero the length
of the axes Ra and Rb as well as the orientation
Phi are also set to zero.
Attentionπ
Note that the operator elliptic_axis_gray only considers
the given Regions and ignores any previously set domain
of the input image Image.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
Parametersπ
Regions (input_object) region(-array) β object
Region(s) to be examined.
Image (input_object) singlechannelimage β object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)
Gray value image.
Ra (output_control) real(-array) β (real)
Major axis of the region.
Rb (output_control) real(-array) β (real)
Minor axis of the region.
Phi (output_control) angle.rad(-array) β (real)
Angle enclosed by the major axis and the x-axis.
Resultπ
elliptic_axis_gray returns 2 (H_MSG_TRUE) if all parameters are
correct and no error occurs during execution. If the input is empty
the behavior can be set via
set_system(::'no_object_result',<Result>:). If
necessary, an exception is raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
threshold, regiongrowing, connection
Possible successors
Alternatives
See also
Moduleπ
Foundation