Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Features » RegionRectangularity
RegionRectangularity
Computes the area of a region divided by the area of its bounding rectangle.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::RegionRectangularity ( const avl::Region& inRegion, float& outRectangularity )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inRegion | const Region& | Input region | ||
outRectangularity | float& |
Hints
- If the input region is not guaranteed to be non-empty, precede this filter with SkipEmptyRegion.
Errors
Error type | Description |
---|---|
DomainError | Degenerate region on input in RegionRectangularity. |