Back to Aurora Vision Library website

You are here: Start » Function Reference » Path » Path Spatial Transforms » AlignPath


Header: AVL.h
Namespace: avl
Module: FoundationLite

Moves a path from a local coordinate system to the absolute one.

Applications: Required when there is a path defined in a local coordinate system, but the next image-related filter in the program does not have any inAlignment input.


void avl::AlignPath
	const avl::Path& inPath,
	const avl::CoordinateSystem2D& inAlignment,
	bool inInverse,
	avl::Path& outAlignedPath


Name Type Default Description
Input value
inPath const Path& Input path
Input value
inAlignment const CoordinateSystem2D& Coordinate system to align to
Input value
inInverse bool Switches to the inverse transform
Output value
outAlignedPath Path&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inPath and outAlignedPath

Read more about In-place Computation.


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.


AlignPath run on the sample paths.

See Also

  • RotatePath – Rotates a path clockwise around a center point.