Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » AlignPoint
Moves a point from a local coordinate system to the absolute one.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::AlignPoint ( const avl::Point2D& inPoint, const avl::CoordinateSystem2D& inAlignment, bool inInverse, avl::Point2D& outAlignedPoint )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPoint | const Point2D& | |||
inAlignment | const CoordinateSystem2D& | Coordinate system to align to | ||
inInverse | bool | Switches to the inverse transform | ||
outAlignedPoint | Point2D& |
Description
AlignPoint aligns the inPoint to the inAlignment coordinate system. The input point is translated, rotated and scaled.
The inAlignment is usually a coordinate system found by some template matching algorithm.
Examples
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPoint and outAlignedPoint
See Also
- AlignPath – Moves a path from a local coordinate system to the absolute one.
- RotatePoint – Rotates a point clockwise around a center point.
- TranslatePoint – Translates a point by a vector.