Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Features » RegionBoundingRectangle_FixedAngle
RegionBoundingRectangle_FixedAngle
Computes the smallest rectangle with the given orientation angle containing a region.
Syntax
C++
C#
void avl::RegionBoundingRectangle_FixedAngle ( const avl::Region& inRegion, atl::real inAngle, avl::Rectangle2D& outBoundingRectangle, atl::Optional<avl::Point2D&> outCenter = atl::NIL, atl::Optional<atl::real&> outLongSide = atl::NIL, atl::Optional<atl::real&> outShortSide = atl::NIL )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inAngle | real | Expected angle of the resulting rectangle | |
![]() |
outBoundingRectangle | Rectangle2D& | Smallest bounding rectangle of the input region | |
![]() |
outCenter | Optional<Point2D&> | NIL | Center of the bounding rectangle |
![]() |
outLongSide | Optional<real&> | NIL | Length of the bounding rectangle long side |
![]() |
outShortSide | Optional<real&> | NIL | Length of the bounding rectangle short side |
Errors
| Error type | Description |
|---|---|
| DomainError | Empty region on input in RegionBoundingRectangle_FixedAngle. |


