Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Features » RegionOrientation
RegionOrientation
Computes the orientation of a region as an angle of value in range 0.0 - 180.0.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::RegionOrientation ( const avl::Region& inRegion, float& outOrientationAngle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inRegion | const Region& | Input region | ||
outOrientationAngle | float& |
Description
Region orientation can be thought of as the direction in which the region is oriented. Mathematically it is the angle between X-axis and the line passing through the region mass center, that rotation around this line produces the smallest torque.
Hints
- If the input region is not guaranteed to be non-empty, precede this filter with SkipEmptyRegion.
Examples
See Also
- ShapeOrientation – Computes the shape orientation as angle with value in range 0.0 - 180.0.