AdjustPointArrays


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

Syntax

C++
C#
Python
 
def AdjustPointArrays(
	inPoints: list[Point2D],
	inReferencePoints: list[Point2D],
	/,
	*,
	inAllowRotation: bool = True,
	inAllowScale: bool = False,
	inMaxIterationCount: int = 10,
	inMatchFraction: float = 0.75,
	inInitialTransformCount: int = 10
)
-> (
	outAlignedPoints: list[Point2D] | None,
	outAlignment: CoordinateSystem2D | None
)

Parameters

Name Type Range Default Description
Input value inPoints list[Point2D] Points to be aligned
Input value inReferencePoints list[Point2D] Points to align to
Input value inAllowRotation bool True Flag indicating whether rotation is allowed as a part of output alignment
Input value inAllowScale bool False Flag indicating whether scale is allowed as a part of output alignment
Input value inMaxIterationCount int 1 - 10 Maximal number of iteration for the algorithm
Input value inMatchFraction float 0.0 - 1.0 0.75 Defines fraction of input points that is being fitted in every iteration
Input value inInitialTransformCount int 1 - 10 Number of initial transforms to be tried out by the algorithm
Output value outAlignedPoints list[Point2D] | None The aligned input points
Output value outAlignment CoordinateSystem2D | None The transform that aligns best the input points