Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » AlignRectangle
Moves a rectangle from a local coordinate system to the absolute one.
Syntax
C++
C#
void avl::AlignRectangle ( const avl::Rectangle2D& inRectangle, const avl::CoordinateSystem2D& inAlignment, bool inInverse, avl::Rectangle2D& outAlignedRectangle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inRectangle | const Rectangle2D& | |||
inAlignment | const CoordinateSystem2D& | Coordinate system to align to | ||
inInverse | bool | Switches to the inverse transform | ||
outAlignedRectangle | Rectangle2D& |
Description
AlignRectangle aligns the inRectangle to the inAlignment coordinate system. The input rectangle is translated, rotated and scaled.
The inAlignment is usually a coordinate system found by some template matching algorithm.