Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » AlignLine
Moves a line from a local coordinate system to the absolute one.
Syntax
C++
C#
void avl::AlignLine ( const avl::Line2D& inLine, const avl::CoordinateSystem2D& inAlignment, bool inInverse, avl::Line2D& outAlignedLine )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inLine | const Line2D& | |||
inAlignment | const CoordinateSystem2D& | Coordinate system to align to | ||
inInverse | bool | Switches to the inverse transform | ||
outAlignedLine | Line2D& |
Description
AlignLine aligns the inLine to the inAlignment coordinate system. The input line is translated, rotated and scaled.
The inAlignment is usually a coordinate system found by some template matching algorithm.
Examples
Errors
Error type | Description |
---|---|
DomainError | Indefinite line on input in AlignLine. |