Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Geometry 2D Spatial Transforms » AlignLine

AlignLine


Module: FoundationLite

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

Name Type Description
inLine Line2D
inAlignment CoordinateSystem2D Coordinate system to align to
inInverse Bool Switches to the inverse transform
outAlignedLine Line2D

Applications

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

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

AlignLine performed on the sample line. The inAlignment is drawn on the first image in blue.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in AlignLine.

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • RotateLine – Rotates a line clockwise around a center point.
  • AlignPath – Moves a path from a local coordinate system to the absolute one.