Back to Aurora Vision Library website
You are here: Start » Function Reference » ShapeRegion » Shape Region Basics » CreateShapeRegionRegion
CreateShapeRegionRegion
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Creates a region corresponding to the given shape region.
Syntax
C++
C#
void avl::CreateShapeRegionRegion ( const avl::ShapeRegion& inShapeRegion, atl::Optional<const avl::CoordinateSystem2D&> inShapeRegionAlignment, int inFrameWidth, int inFrameHeight, avl::Region& outRegion, atl::Optional<avl::ShapeRegion&> outAlignedShapeRegion = atl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inShapeRegion | const ShapeRegion& | ||||
inShapeRegionAlignment | Optional<const CoordinateSystem2D&> | NIL | Adjusts the shape region to the position of the inspected object | ||
inFrameWidth | int | 0 - 65535 | Width of the created region's frame | ||
inFrameHeight | int | 0 - 65535 | Height of the created region's frame | ||
outRegion | Region& | Output region | |||
outAlignedShapeRegion | Optional<ShapeRegion&> | NIL | Transformed input shape region |
Optional Outputs
The computation of following outputs can be switched off by passing value atl::NIL
to these parameters: outAlignedShapeRegion.
Read more about Optional Outputs.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Invalid ShapeRegion in CreateShapeRegionRegion. |