You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » AVL.AdjustPointArrays

AVL.AdjustPointArrays

Aligns a point array to match best the input point array.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void AdjustPointArrays
(
	IList<AvlNet.Point2D> inPoints,
	IList<AvlNet.Point2D> inReferencePoints,
	bool inAllowRotation,
	bool inAllowScale,
	int inMaxIterationCount,
	float inMatchFraction,
	int inInitialTransformCount,
	INullable<List<AvlNet.Point2D>> outAlignedPoints,
	out AvlNet.CoordinateSystem2D? outAlignment
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>Points to be aligned.
inReferencePointsSystem.Collections.Generic.IList<AvlNet.Point2D>Points to align to.
inAllowRotationboolTrueFlag indicating whether rotation is allowed as a part of output alignment. Default value: True.
inAllowScaleboolFalseFlag indicating whether scale is allowed as a part of output alignment. Default value: False.
inMaxIterationCountint<1, INF>10Maximal number of iteration for the algorithm. Default value: 10.
inMatchFractionfloat<0.0f, 1.0f>0.75fDefines fraction of input points that is being fitted in every iteration. Default value: 0.75f.
inInitialTransformCountint<1, INF>10Number of initial transforms to be tried out by the algorithm. Default value: 10.
outAlignedPointsAvlNet.INullable<System.Collections.Generic.List<AvlNet.Point2D>>The aligned input points. This parameter cannot be null.
outAlignmentAvlNet.CoordinateSystem2D?The transform that aligns best the input points.

Errors

List of possible exceptions:

Error type Description
DomainError Input point array is empty in AdjustPointArrays.

See also