Computes the area of a region divided by area of its convex hull.
void avl::RegionConvexity ( const avl::Region& inRegion, float& outConvexity )
|inRegion||const Region&||Input region|
Convexity is a measure of how close a region is to being convex. Convex regions have convexity equal to 1.0, while the more concave the region is, the closer to 0.0 is its convexity.
Mathematically, the convexity is calculated as follows:
- If the input region is not guaranteed to be non-empty, precede this filter with SkipEmptyRegion.
List of possible exceptions:
|DomainError||Empty region on input in RegionConvexity.|