coords.Coords.register#

Coords.register(other_points, max_correspondence_distance=None, max_iterations=30)#

Register this point set to another using rigid Iterative Closest Point (ICP).

This method computes the rigid transformation that best aligns this point set with another by minimizing the distance between corresponding points using Open3D’s point-to-point ICP algorithm.

Parameters#

other_pointsfloat array_like with shape (N,3)

Coordinates of the target point set.

max_correspondence_distancefloat, optional

Maximum distance between corresponding points in ICP. Points with no correspondence within this distance are ignored. If None, the value is estimated from the bounding box size of the combined point sets. Default is None.

max_iterationsint, optional

Maximum number of ICP iterations. Default is 30.

Returns#

registeredCoords

Coordinates after registration.

Examples#

>>> X = Coords([[0., 0., 0.], [1., 0., 0.], [0., 1., 0.]])
>>> Y = X.translate([0.1, 0.05, 0.02])
>>> Z = X.register(Y)
>>> np.allclose(Z, Y)
True