Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Region Features »
RegionBoundingParallelogram
RegionBoundingParallelogram
Computes the smallest parallelogram containing a region.
Syntax
C++
C#
void avl::RegionBoundingParallelogram
(
const avl::Region& inRegion,
avl::BoundingRectangleFeature::Type inBoundingParallelogramFeature,
avl::Path& outBoundingParallelogram,
atl::Optional<avl::Point2D&> outCenter = atl::NIL,
atl::Optional<float&> outLongSide = atl::NIL,
atl::Optional<float&> outShortSide = atl::NIL,
atl::Optional<float&> outAngle = atl::NIL
)
void RegionBoundingParallelogram
(
Region inRegion,
BoundingRectangleFeature inBoundingParallelogramFeature,
out Path outBoundingParallelogram,
out Point2D? outCenter,
out float? outLongSide,
out float? outShortSide,
out float? outAngle
)
Parameters
|
Name |
Type |
Default |
Description |
|
inRegion |
const Region& |
|
Input region |
|
inBoundingParallelogramFeature |
BoundingRectangleFeature::Type |
MinimalArea |
Determines what kind of bounding parallelogram will be computed |
|
outBoundingParallelogram |
Path& |
|
Smallest bounding parallelogram of the input points |
|
outCenter |
Optional<Point2D&> |
NIL |
Center of the bounding parallelogram |
|
outLongSide |
Optional<float&> |
NIL |
Length of the bounding parallelogram long side |
|
outShortSide |
Optional<float&> |
NIL |
Length of the bounding parallelogram short side |
|
outAngle |
Optional<float&> |
NIL |
Angle of the bounding parallelogram |
Errors
Error type |
Description |
DomainError |
Empty region on input in RegionBoundingParallelogram. |