You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » FIL.AdjustPointArrays
FIL.AdjustPointArrays
Aligns a point array to match best the input point array.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void AdjustPointArrays ( IList<FilNet.Point2D> inPoints, IList<FilNet.Point2D> inReferencePoints, bool inAllowRotation, bool inAllowScale, int inMaxIterationCount, float inMatchFraction, int inInitialTransformCount, INullable<List<FilNet.Point2D>> outAlignedPoints, out FilNet.CoordinateSystem2D? outAlignment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point2D> | Points to be aligned. | ||
![]() | inReferencePoints | System.Collections.Generic.IList<FilNet.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. |
![]() | outAlignedPoints | FilNet.INullable<System.Collections.Generic.List<FilNet.Point2D>> | The aligned input points. This parameter cannot be null. | ||
![]() | outAlignment | FilNet.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. |