• Aucun résultat trouvé

Point clouds registration based on the point-to-plane approach for orthogonal transformations

N/A
N/A
Protected

Academic year: 2022

Partager "Point clouds registration based on the point-to-plane approach for orthogonal transformations"

Copied!
7
0
0

Texte intégral

(1)

A Makovetskii1, S Voronin1, V Kober2, A Voronin1 and D Tihonkih1

1Chelyabinsk State University, Bratiev Kashirinykh str. 129, Chelyabinsk, Russia, 454001

2 Department of Computer Science, CICESE, Carretera Ensenada-Tijuana 3918, Ensenada, B.C., Mexico, 22860

Abstract. The most popular algorithm for aligning of 3D point data is the Iterative Closest Point (ICP). This paper proposes a new algorithm for orthogonal registration of point clouds based on the point-to-plane ICP algorithm for affine transformation. At each iterative step of the algorithm, an approximation of the closed-form solution for the orthogonal transformation is derived.

1. Introduction

The Iterative Closest Point (ICP) algorithm [1-5] has become the dominant method for aligning three dimensional models based purely on the geometry. For alignment it is necessary to find a geometric transformation that connects two point clouds in ℝ3 by the best way with respect to the 𝐿2 norm. The ICP algorithm consists of two main stages:

1. Searching of corresponding points (pairs) in two clouds;

2. Minimizing the error metric (variational subproblem of the ICP).

There are two basic approaches to choosing the error metric for pairs of points. Within the point-to- point approach [1], the distance between the elements of the pair in ℝ3 is used. Within the point-to- plane approach [2] the distance between the point of the first cloud and the tangent plane to the corresponding point of the second cloud is used.

The key point [6] of the ICP algorithm is the search of either an orthogonal or affine transformations, best in the sense of a quadratic metric that combines two point clouds with a given correspondence between points (the variational subproblem of the ICP algorithm).

For the point-to-point metric in the case of orthogonal transformations, the solution in a closed- form was obtained by Horn [7,8]. The solution [7] is based on the use of quaternions, whereas the solution [8] uses orthogonal matrices. The solutions are linear in time with respect to the number of point pairs. The original ICP algorithm is widely used for the rigid objects registration, but it does not work well for the case of the non-rigid objects. An extension of the ICP algorithm is proposed [9], using scaling in addition to rotation and translation. A generalization of this algorithm to the case of an arbitrary affine transformation was done [10,11]. A closed-form solution to the point-to-point problem was derived [12-14].

The above mentioned approaches for solving the variational subproblem of the ICP algorithm are based on the point-to-point metric. The point-to-plane metric has been shown to perform better than

(2)

based on the linear least-squares optimization or closed-form methods for small angles only are often used [12].Iterative solutions require an initial approximate estimate of the transformation parameters, and the iterations might converge slowly, converge to a local optimum or not converge at all.

In [16,17] a closed-form solution to the point-to-plane problem for an arbitrary affine transformation is proposed. The affine approach works well when the correspondence between point clouds is good. In this case, the affine point-to-plane method precisely reconstructs original geometric transformation for arbitrary affine transformations, in particular for orthogonal transformations [16,17]. When a correspondence between clouds is not sufficiently good, the affine approach cannot reconstructs an original orthogonal transformation.

In this paper, we propose an approximation of a closed-form solution to the point-to-plane problem for orthogonal transformation. The method is based on the closed-form solution for the affine point-to- plane problem [16,17], matrix polar decomposition and the Horn’s method for calculating the nearest orthonormal matrix [8]. The proposed method does not require an initial approximate estimate.

Computer simulation results are provided to illustrate the performance of the proposed method of solving the minimization problem.

2. Closed-form solution for affine point-to-plane problem

Let 𝑃 = {𝑝1, … , 𝑝𝑛} be a source point cloud, and 𝑄 = {𝑞1, … , 𝑞𝑛} be a destination point cloud in ℝ3. Suppose that the relationship between points in 𝑃 and 𝑄 is given in such a manner that for each point 𝑝𝑖 exists a corresponding point 𝑞𝑖. The ICP algorithm is commonly considered as a geometrical transformation for rigid objects mapping 𝑃 to 𝑄

𝑅𝑝𝑖+ 𝑡, (1) where 𝑅 is a rotation matrix, 𝑡 is a translation vector, 𝑖 = 1, … , 𝑛.

The group of affine transformations in the dimension of three has 12 generators. It means that the affine transformation in the dimension of three is a function of 12 variables. Let us consider the ICP variational problem for an arbitrary affine transformation in the point-to-plane case. Denote by 𝑆(𝑄) a surface constructed from the cloud 𝑄, by 𝑇(𝑞𝑖) denote a tangent plane of 𝑆(𝑄) at point 𝑞𝑖. Let 𝐽(𝐴, 𝑇) be the following function:

𝐽(𝐴) = ∑𝑛𝑖=1(< 𝐴 𝑝𝑖− 𝑞𝑖, 𝑛𝑖 > )2, (2) where <∙,∙> denotes the inner product, 𝐴 is a matrix of an affine transformation in the homogenous coordinates:

𝐴 = (

𝑎11 𝑎12 𝑎13 𝑡1 𝑎21 𝑎22 𝑎23 𝑡2 𝑎31 𝑎32 𝑎33 𝑡3

0 0 0 1

), (3) 𝑝𝑖 is a point from the cloud 𝑃, 𝑛𝑖 is the unitary normal for 𝑇(𝑞𝑖)

𝑝𝑖 = (

𝑝1𝑖 𝑝2𝑖 𝑝3𝑖

1 )

, 𝑛𝑖 = (

𝑛1𝑖 𝑛2𝑖 𝑛3𝑖

0 )

. (4) The ICP variational problem can be stated as follows:

arg 𝑚𝑖𝑛𝐴𝐽(𝐴) . (5) The solution of the problem (5) is given by the following way [16,17]:

𝑀𝐴 = 𝐶. (6) 𝑀 is the coefficients matrix 12 × 12

𝑀𝑗= (𝑚11𝑗 𝑚21𝑗 𝑚31𝑗 𝑚41𝑗 𝑚12𝑖 𝑚22𝑗 𝑚32𝑗 𝑚42𝑗 𝑚13𝑗 𝑚23𝑗 𝑚33𝑗 𝑚43𝑗 ), 𝑗 = 1, … ,3, (7) 𝑚𝑘𝑙𝑗 = ∑𝑛𝑖=1(𝑛𝑗𝑃𝑁)𝑘𝑙𝑖 , 𝑘, 𝑙 = 1, … ,4, 𝑗 = 1, … ,3, (8)

(3)

(𝑛𝑗𝑃𝑁)𝑖= (

𝑝1𝑖𝑛1𝑖𝑛𝑗𝑖 𝑝1𝑖𝑛2𝑖𝑛𝑗𝑖 𝑝1𝑖𝑛3𝑖𝑛𝑗𝑖 0 𝑝2𝑖𝑛1𝑖𝑛𝑗𝑖 𝑝2𝑖𝑛2𝑖𝑛𝑗𝑖 𝑝2𝑖𝑛3𝑖𝑛𝑗𝑖 0 𝑝3𝑖𝑛1𝑖𝑛𝑗𝑖 𝑝3𝑖𝑛2𝑖𝑛𝑗𝑖 𝑝3𝑖𝑛3𝑖𝑛𝑗𝑖 0

𝑛1𝑖𝑛𝑗𝑖 𝑛2𝑖𝑛𝑗𝑖 𝑛3𝑖𝑛𝑗𝑖 0)

, 𝑖 = 1, … , 𝑛, 𝑗 = 1, … ,3, (9)

𝑀3𝑖+𝑗 = (𝑚11𝑖𝑗 𝑚21𝑖𝑗 𝑚31𝑖𝑗 𝑚41𝑖𝑗 𝑚12𝑖𝑖 𝑚22𝑖𝑗 𝑚32𝑖𝑗 𝑚42𝑖𝑗 𝑚13𝑖𝑗 𝑚23𝑖𝑗 𝑚33𝑖𝑗 𝑚43𝑖𝑗),

𝑖, 𝑗 = 1, … ,3, (10)

𝑚𝑘𝑙𝑖𝑗 = ∑𝑛𝑖=1(𝑝𝑗𝑛𝑖𝑃𝑁)𝑘𝑙𝑖 , 𝑘, 𝑙 = 1, … ,4, 𝑖, 𝑗 = 1, … ,3, (11)

(𝑝𝑗𝑛𝑖𝑃𝑁)𝑘= (

𝑝1𝑘𝑛1𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑝1𝑘𝑛2𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑝1𝑘𝑛3𝑘𝑝𝑗𝑘𝑛𝑖𝑘 0 𝑝2𝑘𝑛1𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑝2𝑘𝑛2𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑝2𝑘𝑛3𝑘𝑝𝑗𝑘𝑛𝑖𝑘 0 𝑝3𝑘𝑛1𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑝3𝑘𝑛2𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑝3𝑘𝑛3𝑘𝑝𝑗𝑘𝑛𝑖𝑘 0

𝑛1𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑛2𝑘𝑝𝑗𝑘𝑛𝑖𝑘 𝑛3𝑘𝑝𝑗𝑘𝑛𝑖𝑘 0)

, 𝑘 = 1, … , 𝑛, 𝑖, 𝑗 = 1, … ,3. (12)

𝐶 is the coefficients column with 12 elements

𝑐𝑗= ∑𝑛𝑖=1𝑛𝑗𝑖 < 𝑞𝑖, 𝑛𝑖 >, 𝑗 = 1, … ,3, (13) 𝑐3𝑖+𝑗 = ∑𝑛𝑘=1𝑝𝑗𝑘𝑛𝑖𝑘 < 𝑞𝑘, 𝑛𝑘>, 𝑖, 𝑗 = 1, … ,3. (14)

𝐴 is the column of variables with 12 elements

𝐴 = (𝑎11 𝑎12 𝑎14 𝑎14= 𝑡1 𝑎21 𝑎22 𝑎23 𝑎24= 𝑡2 𝑎31 𝑎32 𝑎33 𝑎34= 𝑡3) 𝑡. (15) The reconstructed affine transform is done by the following formula:

𝐴 = 𝑀−1𝐶. (16) 3. Polar decomposition and orthogonal transformations

A square matrix M can be decomposed into the product of an orthonormal matrix R and a positive semi-definite matrix S [5]. The matrix S is always uniquely determined. The matrix R is uniquely determined when M is nonsingular. When M is nonsingular, we can actually write directly [8]

𝑀 = 𝑅𝑆, (17) 𝑅 = 𝑀(𝑀𝑡𝑀)12. (18) The matrix 𝑀𝑡𝑀 is positive semi-definite and symmetric. The orthogonal matrix 𝑅 in (18) can be computed by the following way [8]:

𝑅 = 𝑀𝐶 (

1

√𝜆1 0 0

0 1

√𝜆2 0

0 0 1

√𝜆3)

𝐶𝑡, (19)

where 𝐶 is orthogonal matrix consisting of columns, that are eigenvectors of the matrix 𝑀𝑡𝑀.

Numbers 𝜆𝑖, 𝑖 = 1, … ,3, are eigenvalues of the matrix 𝑀𝑡𝑀. The formula (18) also defines [8] a nearest orthogonal matrix 𝑅 for the nonsingular matrix 𝑀. It means that the formula (18) describes the projection from the group 𝑆𝐿(3) to the subgroup 𝑆𝑂(3).

4. Projection on 𝑺𝑶(𝟑)

For approximation of the exact solution of the problem (5) we propose the following method. At each step of the ICP algorithm, we project a top-left submatrix 𝐴′ (size of 3 × 3) of a matrix 𝐴 of an affine transform, computed by the formula (16), to 𝑆𝑂(3) by the formula (19). After that it is necessary to recalculate a translation 𝑡 = (𝑡1, 𝑡2, 𝑡3) 𝑡.

Denote by 𝑅 a result of projection of a top-left submatrix 3 × 3 of a matrix 𝐴 to 𝑆𝑂(3). Denote by 𝑁 the following matrix 𝑛 × 3:

𝑁 = (

𝑛11 𝑛21 𝑛31

… ), (20)

(4)

denote by 𝑣 the following vector-column 𝑛 × 1:

𝑣𝑖 =< 𝑞𝑖− 𝑅𝑝𝑖, 𝑛𝑖 >. (21) Then the problem

𝑛𝑖=1(< 𝑅 𝑝𝑖+ 𝑡 − 𝑞𝑖, 𝑛𝑖 > )2= ∑𝑛𝑖=1(< 𝑡, 𝑛𝑖 > −< 𝑞𝑖− 𝑅 𝑝𝑖, 𝑛𝑖> )2 → min𝑡 , (22) is the least squares problem for the equation

𝑁𝑡 = 𝑣. (23) Thus we have:

𝑡 = (𝑁𝑡𝑁)−1𝑁𝑡𝑣. (24)

Figure 1. Illustration of projection of

the top-left submatrix 𝐴′ onto 𝑆𝑂3.

Figure 2. Block-diagram of the proposed algorithm.

Figure 1 illustrates projection of the top-left submatrix 𝐴′ of the matrix 𝐴 of the affine transform onto submanifold 𝑆𝑂3. The block-diagram of the proposed algorithm as part of the ICP algorithm is shown in Figure 2.

5. Computer simulation

5.1. We consider two variants of the ICP algorithm here

The first is point-to-point ICP based on Horn algorithm. The second is point-to-plane ICP based on the proposed approximation of an exact solution of the variational problem. Other elements of ICP algorithm are same.

5.1.1. Let 𝑃 be the cloud consisting of 34817 points, see figure 1 (blue colour)

The cloud 𝑄 (green colour) is obtained from 𝑃 by the orthogonal transformation 𝑄 = 𝑇1∗ 𝑃, where 𝑇1 is given by

𝑇1= (

1.00000 0.00000 0.00000 3.10000 0.00000 0.83867 −0.54464 1.13270 0.00000 0.54464 0.83867 1.92795 0.00000 0.00000 0.00000 1.00000

).

Computed by the proposed method transformation 𝑀1 is given as 𝑀1= (

1.00000 0.00000 0.00000 3.10000 0.00000 0.83867 −0.54464 1.13270 0.00000 0.54464 0.83867 1.92795 0.00000 0.00000 0.00000 1.00000

).

The reconstructed by the point-to-point ICP geometrical transformation has the same matrix. The point-to-point ICP method converges in 31 iterations, processing time 1745 milliseconds. The proposed ICP method converges in 10 iterations, processing time 913 milliseconds.

Figure 3 shows the clouds 𝑃 (blue) and 𝑄 (green), figure 4 shows the clouds 𝑃′ = 𝑀1∙ 𝑃 (blue) and 𝑄 (green) together.

(5)

Figure 3.Cloud 𝑃 (blue), cloud 𝑄 (green). Figure 4. Cloud 𝑃′ = 𝑀1∙ 𝑃 (blue), cloud 𝑄 (green).

5.1.2. Let 𝑃 be the cloud consisting of 34817 points, see figure 3 (blue colour)

The cloud 𝑄 (green colour) is obtained from 𝑃 by the orthogonal transformation 𝑄 = 𝑇2∗ 𝑃, where 𝑇1 is given by

𝑇2= (

0.91015 −0.36772 0.19081 −0.79646 0.21782 0.81653 0.53463 2.18083

−0.35240 −0.44503 0.82326 2.41239 0.00000 0.00000 0.00000 1.00000

).

Computed by the proposed method transformation 𝑀2 is given as 𝑀2= (

0.91015 −0.36772 0.19081 −0.79646 0.21782 0.81653 0.53463 2.18083

−0.35240 −0.44503 0.82326 2.41239 0.00000 0.00000 0.00000 1.00000

).

The reconstructed by the point-to-point ICP geometrical transformation has the same matrix. The point-to-point ICP method converges in 41 iterations, processing time 2458 milliseconds. The proposed ICP method converges in 16 iterations, processing time 1491 milliseconds.

Figure 5. Cloud 𝑃 (blue), cloud 𝑄 (green). Figure 6. Cloud 𝑃′ = 𝑀2∙ 𝑃 (blue), cloud 𝑄 (green).

Figure 5 shows the clouds 𝑃 (blue) and 𝑄 (green), figure 6 shows the clouds 𝑃′ = 𝑀2∙ 𝑃 (blue) and 𝑄 (green) together.

5.1.3. Let 𝑃 be the cloud consisting of 34817 points, see figure 5 (blue colour)

The cloud 𝑄 (green colour) is obtained from 𝑃 by the orthogonal transformation 𝑄 = 𝑇3∗ 𝑃, where 𝑇3 is given by

𝑇3= (

0.98163 0.00000 −0.19081 −0.64070 0.03641 0.98163 0.18730 0.03261 0.18730 −0.19081 0.96359 1.21591 0.00000 0.00000 0.00000 1.00000

).

Computed by the proposed method transformation 𝑀1 is given as

(6)

𝑀3= (

0.98163 0.00000 −0.19081 −0.64070 0.03641 0.98163 0.18730 0.03261 0.18730 −0.19081 0.96359 1.21591 0.00000 0.00000 0.00000 1.00000

).

The reconstructed by the point-to-point ICP geometrical transformation has the same matrix. The point-to-point ICP method converges in 19 iterations, processing time 984 milliseconds. The proposed ICP method converges in 9 iterations, processing time 747 milliseconds.

Figure 7. Cloud 𝑃 (blue), cloud 𝑄 (green). Figure 8. Cloud 𝑃′ = 𝑀3∙ 𝑃 (blue), cloud 𝑄 (green).

Figure 7 shows the clouds 𝑃 (blue) and 𝑄 (green), figure 8 shows the clouds 𝑃′ = 𝑀3∙ 𝑃 (blue) and 𝑄 (green) together.

5.1.4. Let 𝑃 be the cloud consisting of 106289 points, see figure 7 (blue colour)

The cloud 𝑄 (green colour) is obtained from 𝑃 by the orthogonal transformation 𝑄 = 𝑇4∗ 𝑃, where 𝑇4 is given by

𝑇4= (

0.83867 0.54464 −0.00000 1.38331

−0.45677 0.70337 −0.54464 −0.29804

−0.29663 0.45677 0.83867 0.99881 0.00000 0.00000 0.00000 1.00000

).

Computed by the proposed method transformation 𝑀4 is given as 𝑀4= (

0.83867 0.54464 −0.00000 1.38331

−0.45677 0.70337 −0.54464 −0.29804

−0.29663 0.45677 0.83867 0.99881 0.00000 0.00000 0.00000 1.00000

).

The reconstructed by the point-to-point ICP geometrical transformation has the same matrix. The point-to-point ICP method converges in 24 iterations, processing time 6316 milliseconds. The proposed ICP method converges in 16 iterations, processing time 5792 milliseconds.

Figure 9. Cloud 𝑃 (blue), cloud 𝑄 (green). Figure 10. Cloud 𝑃′ = 𝑀4∙ 𝑃 (blue), cloud 𝑄 (green).

Figure 9 shows the clouds 𝑃 (blue) and 𝑄 (green), figure 10 shows the clouds 𝑃′ = 𝑀4∙ 𝑃 (blue) and 𝑄 (green) together.

(7)

6. Conclusion

In this paper, we revised error minimizing steps of the ICP algorithm. A new algorithm for orthogonal registration of point clouds based on the point-to-plane ICP algorithm for affine transformation is proposed. At each iterative step of the algorithm, an approximation of the closed-form solution for the orthogonal transformation is derived.

7. References

[1] Besl P and McKay N 1992 A Method for Registration of 3-D Shapes IEEE Transactions on Pattern Analysis and Machine Intelligence 14 239-256

[2] Chen Y and Medioni G 1992 Object Modeling by Registration of Multiple Range Images Image and Vision Computing 10 145-155

[3] Protsenko V I, Kazanskiy N L and Serafimovich P G 2015 Real-time analysis of parameters of multiple object detection systems Computer Optics 39(4) 582-591 DOI: 10.18287/0134-2452- 2015-39-4-582-591

[4] Myasnikov V V 2015 A local order transform of digital images Computer Optics 39(3) 397-405 DOI: 10.18287/0134-2452-2015-39-3-397-405

[5] Goshin Ye V and Fursov V A 2015 3D scene reconstruction from stereo images with unknown extrinsic parameters Computer Optics 39(5) 770-776 DOI: 10.18287/0134-2452-2015-39-5- 770-775

[6] Turk G and Levoy M 1994 Zippered Polygon Meshes from Range Images Computer Graphics Proceedings, Annual Conference Series 311-318

[7] Horn B 1987 Closed-Form Solution of Absolute Orientation Using Unit Quaternions Journal of the Optical Society of America A 4 629-642

[8] Horn B, Hilden H and Negahdaripour S 1988 Closed-form Solution of Absolute Orientation Using Orthonormal Matrices Journal of the Optical Society of America Series A 5 1127-1135 [9] Du S, Zheng N, Ying S, You Q and Wu Y 2007 An extension of the ICP algorithm considering

scale factor Proc. 14th IEEE Internat. Conf. on Image Processing (ICIP) 193-196

[10] Du S, Zheng N, Ying S and Liu J 2010 Affine iterative closest point algorithm for point set registration Pattern Recognition Letters 31 791-799

[11] Du S, Zheng N, Meng G and Yuan Z 2008 Affine Registration of Point Sets Using ICP and ICA IEEE Signal Processing Letters 15 689-692

[12] Tihonkih D, Makovetskii A and Kuznetsov V 2016 A modified iterative closest point algorithm for shape registration Proc. SPIE Appl. of Digital Image 9971 99712D

[13] Tihonkih D, Makovetskii and Kuznetsov V 2016 The iterative closest points algorithm and affine transformations Proc. Int. Conference of Analysis of Images, Social Networks, and Texts 351-359

[14] Vokhmintsev A, Makovetskii A, Kober V, Sochenkov I and Kuznetsov V 2015 A fusion algorithm for building three-dimensional maps Proc. SPIE's 60 Annual Meeting: Applications of Digital Image Processing XXXVIII 9599 959929-1

[15] Rusinkiewicz S and Levoy M 2001 Efficient Variants of the ICP Algorithm Proceedings of the International Conference on 3-D Digital Imaging and Modeling 145-152

[16] Makovetskii A, Voronin S, Kober V and Tihonkih D 2017 An efficient point-to-plane registration algorithm for affine transformations Applications of Digital Image Processing 10396 103962J

[17] Makovetskii A, Voronin S, Kober V and Tihonkih D 2017 Affine registration of point clouds based on point-to-plane approach Procedia Engineering 201 322-330

Acknowledgments

The work was supported by the Ministry of Education and Science of Russian Federation (grant № 2.1743.2017) and by the RFBR (grant № 18-07-00963).

Références

Documents relatifs

In contrast, a systematic study of small degree embeddings (see in particular § 4.2) reveals that the images of these rational smooth embeddings are in a natural way smooth fibers of

More generally, we study the topological properties of the fixed-point spectrum on L p (X, µ) for general measure spaces (X, µ), and show partial results toward the conjecture

- The above construction (weak coupling boundary conditions) coincides with the theory defined by Dirichlet boundary data.. In fact if the weakly coupled ~(~p)2

Assume that Z is a holomorphic vector field with an isolated, non–nilpotent singularity at (0,0). In general it is not possible to give simpler models. The second result addresses

All these materials existed before: the turbulent carbon filaments, the academic gra- phene, the speculative carbon balloon.. But by the 1990s their mode of exis- tence shifted

Aby zoptymalizować działanie algorytmu RANSAC wprowadzono dodatkowo ograniczenie dotycz ce ł czno ci pomi dzy punktami wyodr bnionymi dla poszczególnych powierzchni.

This coarse registration process is carried out in three steps: (1) Creating preliminary line matching A ini between Data and Model sets; (2) Applying the

GEtiT-VR provides a similar gameplay to GEtiT’s desktop version as it utilizes the same gamification metaphor, additional game mechanics as well as training exercises, but, instead