You are here: Start » AVL.NET » 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, out AvlNet.CoordinateSystem2D? outAlignment, INullable<List<AvlNet.Point2D>> outAlignedPoints )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | Points to be aligned. | |||
inReferencePoints | System.Collections.Generic.IList<AvlNet.Point2D> | Points to align to. | |||
inAllowRotation | bool | True | Flag indicating whether rotation is allowed as a part of output alignment. Default value: True. | ||
inAllowScale | bool | False | Flag indicating whether scale is allowed as a part of output alignment. Default value: False. | ||
inMaxIterationCount | int | <1, INF> | 10 | Maximal number of iteration for the algorithm. Default value: 10. | |
inMatchFraction | float | <0.0f, 1.0f> | 0.75f | Defines fraction of input points that is being fitted in every iteration. Default value: 0.75f. | |
inInitialTransformCount | int | <1, INF> | 10 | Number of initial transforms to be tried out by the algorithm. Default value: 10. | |
outAlignment | AvlNet.CoordinateSystem2D? | The transform that aligns best the input points. | |||
outAlignedPoints | AvlNet.INullable<System.Collections.Generic.List<AvlNet.Point2D>> | The aligned input points. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input point array is empty in AdjustPointArrays. |