Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Spatial Transforms » AlignPath
AlignPath
Moves a path from a local coordinate system to the absolute one.
Syntax
C++
C#
void avl::AlignPath ( const avl::Path& inPath, const avl::CoordinateSystem2D& inAlignment, bool inInverse, avl::Path& outAlignedPath )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPath | const Path& | Input path | ||
inAlignment | const CoordinateSystem2D& | Coordinate system to align to | ||
inInverse | bool | Switches to the inverse transform | ||
outAlignedPath | Path& |
Description
AlignPath aligns the inPath to the inAlignment coordinate system. The input path is translated, rotated and scaled.
The inAlignment is usually an alignment of an object found by some template matching algorithm.
Examples
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPath and outAlignedPath