Back to Aurora Vision Library website

You are here: Start » Function Reference » Region » Region Features » RegionBoundingParallelogram

RegionBoundingParallelogram


Header: AVL.h
Namespace: avl
Module: FoundationPro

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
)

Parameters

Name Type Default Description
Input value inRegion const Region& Input region
Input value inBoundingParallelogramFeature BoundingRectangleFeature::Type MinimalArea Determines what kind of bounding parallelogram will be computed
Output value outBoundingParallelogram Path& Smallest bounding parallelogram of the input points
Output value outCenter Optional<Point2D&> NIL Center of the bounding parallelogram
Output value outLongSide Optional<float&> NIL Length of the bounding parallelogram long side
Output value outShortSide Optional<float&> NIL Length of the bounding parallelogram short side
Output value outAngle Optional<float&> NIL Angle of the bounding parallelogram

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outCenter, outLongSide, outShortSide, outAngle.

Read more about Optional Outputs.

Errors

List of possible exceptions:

Error type Description
DomainError Empty region on input in RegionBoundingParallelogram.