Defining Point Cloud Transformation Parameters

Formulation of the problem


Consider the problem of finding the angle of rotation and displacement of a point cloud. A point cloud means a set of points on a plane that preserves the relative position of each other during their spatial movement.


Those. There are two sets of points: the initial cloud and the cloud transformed arbitrarily in space (see Fig. 1). Any transformation of a point cloud in space can be interpreted as rotation and displacement. Thus, it is necessary to determine at what angle you want to rotate the original point cloud and how far it should be moved from the original point cloud in order to get the same point cloud converted in an arbitrary way.



Fig. 1 Example of a point cloud to which a rotation of 15 degrees is applied, and an offset along the X axis: 10, along the Y axis: 30



Algorithm


1. Determining the offset of the point cloud


To determine the displacement of a point cloud, it is necessary to determine the centers of mass of the original point cloud and the transformed point cloud. The displacement of the center of mass of the transformed point cloud relative to the original point cloud is the required displacement. When determining the center of mass, all points have the same weight.


To find the center of mass, it is necessary to sum the coordinates of all points, and divide by the total number of points.




All Articles