Back to Adaptive Vision Library website

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

RegionBoundingRectangle_OrNil


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Computes the smallest rectangle containing a region; returns NIL if the region is empty.

Syntax

C++
C#
 
void avl::RegionBoundingRectangle_OrNil
(
	const avl::Region& inRegion,
	avl::BoundingRectangleFeature::Type inBoundingRectangleFeature,
	float inReferenceAngle,
	avl::RectangleOrientation::Type inRectangleOrientation,
	atl::Conditional<avl::Rectangle2D>& outBoundingRectangle,
	atl::Conditional<avl::Point2D>& outCenter,
	atl::Conditional<float>& outLongSide,
	atl::Conditional<float>& outShortSide
)

Parameters

Name Type Default Description
Input value
inRegion const Region& Input region
Input value
inBoundingRectangleFeature BoundingRectangleFeature::Type MinimalArea Determines what kind of bounding rectangle will be computed
Input value
inReferenceAngle float 0.0f The middle angle of the valid range of the output rectangle's angle
Input value
inRectangleOrientation RectangleOrientation::Type Horizontal Orientation of the output rectangle
Output value
outBoundingRectangle Conditional<Rectangle2D>& Smallest bounding rectangle of the input region
Output value
outCenter Conditional<Point2D>& Center of the bounding rectangle
Output value
outLongSide Conditional<float>& Length of the bounding rectangle long side
Output value
outShortSide Conditional<float>& Length of the bounding rectangle short side