Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Basics » CreatePathBorderRegion
Creates a region from a path with given parameters.
Syntax
C++
C#
void avl::CreatePathBorderRegion ( const avl::Path& inPath, atl::Optional<const avl::CoordinateSystem2D&> inPathAlignment, float inBorderWidth, avl::BorderPosition::Type inBorderPosition, int inFrameWidth, int inFrameHeight, avl::Region& outRegion, atl::Optional<avl::Path&> outAlignedPath = atl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath | const Path& | Input path | |||
inPathAlignment | Optional<const CoordinateSystem2D&> | NIL | Adjusts the path to the position of the inspected object | ||
inBorderWidth | float | 0.0 - | 1.0f | ||
inBorderPosition | BorderPosition::Type | Centered | |||
inFrameWidth | int | 0 - | Width of the created region's frame | ||
inFrameHeight | int | 0 - | Height of the created region's frame | ||
outRegion | Region& | Output region | |||
outAlignedPath | Optional<Path&> | NIL | The input path transformed to the absolute coordinate system |