Name
orientation_region orientation_region OrientationRegion orientation_region OrientationRegion OrientationRegion — Orientation of a region.
Herror orientation_region (const Hobject Regions , double* Phi )
Herror T_orientation_region (const Hobject Regions , Htuple* Phi )
Herror orientation_region (Hobject Regions , double* Phi )
Herror orientation_region (Hobject Regions , HTuple* Phi )
double HRegion ::OrientationRegion () const
HTuple HRegionArray ::OrientationRegion () const
The operator orientation_region orientation_region OrientationRegion orientation_region OrientationRegion OrientationRegion calculates the
orientation of the region. The operator is based on elliptic_axis elliptic_axis EllipticAxis elliptic_axis EllipticAxis EllipticAxis .
In addition the point on the contour with maximal distance to the
center of gravity is calculated. If, in the rotated coordinate system,
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.
In the documentation of the operator region_features region_features RegionFeatures region_features RegionFeatures RegionFeatures , you can
find an image illustrating regions which vary in their orientation.
If more than one region is passed the results are stored in tuples, the index
of a value in the tuple corresponding to the index of a region in the
input.
In case of empty region all parameters have the value 0.0 if no other
behavior was set
(see 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>) ).
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on tuple level.
Region(s) to be examined.
Orientation of region (arc measure).
Assertion: - pi <= Phi && Phi < pi
If F is the area of a region the mean runtime
complexity is O(sqrt(F)).
The operator orientation_region orientation_region OrientationRegion orientation_region OrientationRegion OrientationRegion returns the value 2 (H_MSG_TRUE) if the input
is not empty. The behavior in case of empty input (no input regions 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>) .
The behavior in case of empty region (the region is the empty set) is set via
set_system('empty_region_result',<Result>) set_system("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) set_system("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) .
If necessary an exception is raised.
threshold threshold Threshold threshold Threshold Threshold ,
regiongrowing regiongrowing Regiongrowing regiongrowing Regiongrowing Regiongrowing ,
connection connection Connection connection Connection Connection
disp_arrow disp_arrow DispArrow disp_arrow DispArrow DispArrow
elliptic_axis elliptic_axis EllipticAxis elliptic_axis EllipticAxis EllipticAxis ,
smallest_rectangle2 smallest_rectangle2 SmallestRectangle2 smallest_rectangle2 SmallestRectangle2 SmallestRectangle2
moments_region_2nd moments_region_2nd MomentsRegion2nd moments_region_2nd MomentsRegion2nd MomentsRegion2nd ,
line_orientation line_orientation LineOrientation line_orientation LineOrientation LineOrientation
Foundation