Back to FabImage Studio website

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

AlignSegment


Module: FoundationLite

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

Applications

Required when there is a segment defined in a local coordinate system, but the next image-related filter in the program does not have any inAlignment input.
Name Type Description
Input value
inSegment Segment2D
Input value
inAlignment CoordinateSystem2D Coordinate system to align to
Input value
inInverse Bool Switches to the inverse transform
Output value
outAlignedSegment Segment2D

Description

AlignSegment aligns the inSegment to the inAlignment coordinate system. The input segment is translated, rotated and scaled.

The inAlignment is usually a coordinate system found by some template matching algorithm.

Examples

AlignSegment performed on the sample segment. The inAlignment is drawn on the first image in blue.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also

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