Back to Aurora Vision Library website

You are here: Start » Function Reference » Region » Region Basics » CreateLineRegion

CreateLineRegion


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates a line region.

Syntax

C++
C#
 
void avl::CreateLineRegion
(
	const avl::Line2D& inLine,
	atl::Optional<const avl::CoordinateSystem2D&> inLineAlignment,
	float inWidth,
	int inFrameWidth,
	int inFrameHeight,
	avl::Region& outRegion,
	atl::Optional<avl::Line2D&> outAlignedLine = atl::NIL
)

Parameters

Name Type Range Default Description
Input value inLine const Line2D&
Input value inLineAlignment Optional<const CoordinateSystem2D&> NIL
Input value inWidth float 1.0 - Width of output region line
Input value inFrameWidth int 0 - 65535
Input value inFrameHeight int 0 - 65535
Output value outRegion Region& Output region
Output value outAlignedLine Optional<Line2D&> NIL

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outAlignedLine.

Read more about Optional Outputs.

Description

Filter creates a region defined by an input Line2D with width of inWidth.

Examples

Filter CreateLineRegion is used to split region int two parts: