Name
orientation_xld orientation_xld OrientationXld orientation_xld OrientationXld OrientationXld — Orientation of contours or polygons.
orientation_xld (XLD : : : Phi )
Herror orientation_xld (const Hobject XLD , double* Phi )
Herror T_orientation_xld (const Hobject XLD , Htuple* Phi )
Herror orientation_xld (Hobject XLD , double* Phi )
Herror orientation_xld (Hobject XLD , HTuple* Phi )
double HXLD ::OrientationXld () const
HTuple HXLDArray ::OrientationXld () const
void OrientationXld (const HObject& XLD , HTuple* Phi )
HTuple HXLD ::OrientationXld () const
The operator orientation_xld orientation_xld OrientationXld orientation_xld OrientationXld OrientationXld calculates the orientation of
each input contour or polygon. The operator is based on
elliptic_axis_xld elliptic_axis_xld EllipticAxisXld elliptic_axis_xld EllipticAxisXld EllipticAxisXld . 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_xld orientation_xld OrientationXld orientation_xld OrientationXld OrientationXld will artificially close
the contours or polygons.
It should be noted that orientation_xld orientation_xld OrientationXld orientation_xld OrientationXld OrientationXld only returns useful
results if the contour or polygon encloses a region in the plane. In
particular, the contour or polygon must not intersect itself. This
is particularly important if open contours or polygons are passed
because they are closed automatically, which can produce a
self-intersection. To test whether the contours or polygons
intersect themselves, test_self_intersection_xld test_self_intersection_xld TestSelfIntersectionXld test_self_intersection_xld TestSelfIntersectionXld TestSelfIntersectionXld can be
used. If the contour or polygon intersects itself, useful values
for the orientation can be calculated with
orientation_points_xld orientation_points_xld OrientationPointsXld orientation_points_xld OrientationPointsXld OrientationPointsXld .
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 XLD XLD XLD XLD XLD XLD .
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on tuple level.
Contours or polygons to be examined.
Orientation of the contours or polygons (radians).
Assertion: - pi < Phi && Phi <= pi
The operator orientation_xld orientation_xld OrientationXld orientation_xld OrientationXld OrientationXld returns the value 2 (H_MSG_TRUE) if the input
is not empty. The behavior in case of empty input (no input contours
available) is set via the operator
set_system('no_object_result',<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) .
If necessary an exception is raised.
gen_contours_skeleton_xld gen_contours_skeleton_xld GenContoursSkeletonXld gen_contours_skeleton_xld GenContoursSkeletonXld GenContoursSkeletonXld ,
edges_sub_pix edges_sub_pix EdgesSubPix edges_sub_pix EdgesSubPix EdgesSubPix ,
threshold_sub_pix threshold_sub_pix ThresholdSubPix threshold_sub_pix ThresholdSubPix ThresholdSubPix ,
gen_contour_polygon_xld gen_contour_polygon_xld GenContourPolygonXld gen_contour_polygon_xld GenContourPolygonXld GenContourPolygonXld ,
test_self_intersection_xld test_self_intersection_xld TestSelfIntersectionXld test_self_intersection_xld TestSelfIntersectionXld TestSelfIntersectionXld
elliptic_axis_xld elliptic_axis_xld EllipticAxisXld elliptic_axis_xld EllipticAxisXld EllipticAxisXld ,
smallest_rectangle2_xld smallest_rectangle2_xld SmallestRectangle2Xld smallest_rectangle2_xld SmallestRectangle2Xld SmallestRectangle2Xld
moments_region_2nd moments_region_2nd MomentsRegion2nd moments_region_2nd MomentsRegion2nd MomentsRegion2nd
Foundation