You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » FIL.AlignSegment

FIL.AlignSegment

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

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void AlignSegment
(
	FilNet.Segment2D inSegment,
	FilNet.CoordinateSystem2D inAlignment,
	bool inInverse,
	out FilNet.Segment2D outAlignedSegment
)

Parameters

Name Type Range Default Description
inSegmentFilNet.Segment2D
inAlignmentFilNet.CoordinateSystem2DCoordinate system to align to.
inInverseboolSwitches to the inverse transform.
outAlignedSegmentFilNet.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.

See also