Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Features » PointsBoundingParallelogram

PointsBoundingParallelogram


Computes the smallest parallelogram containing an array of points.

Header:AVL.h

Syntax

C++
C#
 
void avl::PointsBoundingParallelogram
(
	const atl::Array<avl::Point2D>& inPoints,
	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
inPoints const Array<Point2D>& Input array of points
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 No points on input in PointsBoundingParallelogram.
DomainError Unknown parallelogram feature in PointsBoundingParallelogram.