Next Article in Journal
Assessing Drivers’ Physiological Responses Using Consumer Grade Devices
Previous Article in Journal
Ecological Suitability Evaluation for Conservation and Development in Bac Kan Province, Vietnam
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Total Least-Squares Iterative Closest Point Algorithm Based on Lie Algebra

School of Instrument Science and Engineering, Southeast University, Nanjing 210000, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2019, 9(24), 5352; https://doi.org/10.3390/app9245352
Submission received: 14 November 2019 / Revised: 29 November 2019 / Accepted: 4 December 2019 / Published: 7 December 2019
(This article belongs to the Section Earth Sciences)

Abstract

:
In geodetic surveying, input data from two coordinates are needed to compute rigid transformations. A common solution is a least-squares algorithm based on a Gauss–Markov model, called iterative closest point (ICP). However, the error in the ICP algorithm only exists in target coordinates, and the algorithm does not consider the source model’s error. A total least-squares (TLS) algorithm based on an errors-in-variables (EIV) model is proposed to solve this problem. Previous total least-squares ICP algorithms used a Euler angle parameterization method, which is easily affected by a gimbal lock problem. Lie algebra is more suitable than the Euler angle for interpolation during an iterative optimization process. In this paper, Lie algebra is used to parameterize the rotation matrix, and we re-derive the TLS algorithm based on a GHM (Gauss–Helmert model) using Lie algebra. We present two TLS-ICP models based on Lie algebra. Our method is more robust than previous TLS algorithms, and it suits all kinds of transformation matrices.

1. Introduction

An iterative closest point (ICP) algorithm [1] estimates a pose transformation matrix using coordinates from a source model and target model. This technique is frequently used in ego-motion estimation [2], geodesy, computer vision, and system identification [3]. In this paper, the ICP algorithm is only concerned with the estimation of the pose transformation matrix. This means we have known correspondences between two point clouds, and there are no outliers in the source model and target model. ICP forms a cost function using two point clouds’ coordinates and searches for a rigid transformation to minimize its residual error. In [4], Horn proposed an analytical solution to the ICP problem using unit-quaternion. This approach only considers target errors and assumes the error is isotropic, identical, and independent Gaussian noise. If errors from the target model are not isotropic and identical, then we can use a nonlinear optimization method [5] to obtain a rigid transformation matrix. However, errors do not only exist in the target model in practice. A more accurate model assumes that errors exist in both the source model and target model; this is called an errors-in-variables (EIV) model. Golub and Van Loan [6] proposed a total least-squares (TLS) method, especially for solving EIV problems. If the cost function of EIV is linear in the estimated parameter, we can use a Newton-Gauss TLS algorithm [7] or Lagrange TLS algorithm [8] to solve an EIV model. However, the cost function of an ICP algorithm is nonlinear because of the rotation matrix. New TLS algorithms were designed to solve nonlinear ICP problems [9,10]. The Felus [9] uses a Procrustes approach to obtain a rotation matrix to avoid nonlinearity in the TLS cost function. Then the scale s and translation t are obtained using a linear EIV model. Felus assumes that errors in the target model and source model are the same, so a rotation matrix from the Procrustes approach satisfies the EIV model. In [10], Brun fixes the translation and estimates the rotation matrix using [10]. After obtaining the rotation matrix, the translation matrix is estimated using a linear EIV model. [10] cannot guarantee the optimality and effectiveness of the algorithm because of its alternating optimization strategy. [9,10] use approximation methods and Euler angle parameterization to solve the nonlinear TLS problem. In [11], Ohta constructs a cost function using elements of the rotation matrix directly. This method is convenient for obtaining results using existing methods such as [7,12]. However, it minimizes the cost function in Euclidean space, which does not conform to reality because the rotation matrix belongs to a special orthogonal group. We cannot promise that rotation matrix constructed by elements is identity orthogonal matrix. We must minimize the Frobenius norm to project the rotation matrix of the TLS algorithm to a special orthogonal group. This does not guarantee that the final rotation matrix is the global optimal solution. Previous papers focus on how to construct a robust cost function and how to deal with the weight matrix. The Euler angle is a commonly used variable to parameterize the rotation matrix [13,14,15]. However, the Euler angle loses its freedom in the case of a gimbal lock and is not suitable for interpolating in nonlinear optimization. In practical situations, measurement data cannot promise that a gimbal lock does not occur. To solve this problem, we introduce Lie algebra to the TLS problem. We use a variant of the Gauss–Helmert [16] model, which is a general method to solve nonlinear TLS problems without assumptions, and Lie algebra is used to parameterize the rotation matrix without the gimbal lock problem.
The rest of this paper is organized as follows. In Section 2, we introduce definitions and properties of Lie algebra and Lie groups. Then we introduce a variant of the Gauss–Helmert model that is used in the ICP model. We specify the Jacobian matrix used in the Gauss–Helmert model. In Section 3, we use a numerical example to verify our TLS algorithm, and we compare it to least-squares results. We summarize our conclusions in Section 4.

2. ICP Algorithm Based on Lie Algebra

In Section 2.1, we describe the fundamental ICP problem and introduce the TLS model to solve it. In Section 2.2, the GHM model is used to solve the nonlinear TLS problem. In Section 2.3, we introduce Lie groups and Lie algebra to parameterize the rotation matrix. In Section 2.4, we derive the Jacobian matrix for use in the GHM model and parameter updating method.

2.1. Iterative Closest Points

We use ICP to compute a rigid transformation matrix between two frames. We measure points’ coordinates from two frames, and their correspondences are known. Measurements are assumed without data, and we can obtain the equation:
X ¯ i = R X ¯ i + t X ¯ i = R X ¯ i + t ,
where X ¯ i is a 3D point from the target model without noise, and X ¯ i is a 3D point of the source model without noise. X ¯ i = X i + Δ X i , where X i is the measurement of the 3D point from the target model, and Δ X i is the measurement error in the target model. X ¯ i = X i + Δ X i , where X i is the measurement of the 3D point from the source model, and Δ X i is the measurement error in the source model. The aim of ICP is to estimate the rotation matrix R and t using measurements { X i } and { X i }. The least-squares (LS) method thinks that Δ X i = 0 , so the optimization equation is:
m i n R , t i = 1 n Δ X i T Δ X i = m i n R , t i = 1 n ( R X i + t X i ) T ( R X i + t X i ) ,
where n is the total number of measurements from the target model and source model. We can see from Equation (2) that the LS approach only minimizes residual error in the target model. TLS considers the error from both the target model and source model, and the optimization equation is:
m i n R , t i = 1 n Δ X i T Δ X i + Δ X i T Δ X i ,
We do not only minimize Equation (3); we must guarantee that X i + Δ X i = R ( X i + Δ X i ) + t . We add a Lagrange multiplier to Equation (3) and the optimization equation becomes:
m i n R , t i = 1 n Δ X i T Δ X i + Δ X i T Δ X i + i = 1 n 2 λ i ( R ( X i + Δ X i ) + t X i Δ X i ) ,
where λ i is a real number. Equation (4) is a constrained nonlinear optimization problem; we use the GHM model to solve this problem.

2.2. Variant of the Gauss–Helmert Model

First, we transform Equation (4) to:
Φ = m i n R , t e T P e + 2 λ T [ ( A + V A ) R T + l n T t T Y V y ] ,
where e = [ v e c ( V A ) v e c ( V y ) ] 6 n 1 , and the operator “vec” is to stack one column of a matrix under the other from left to right. p is the Fisher information matrix and is equal to the identity matrix in this paper:
A + V A = [ x 1 + Δ x 1 y 1 + Δ y 1 z 1 + Δ z 1 x 2 + Δ x 2 y 2 + Δ y 2 z 2 + Δ z 2 x n + Δ x n y n + Δ y n z n + Δ z n ] n × 3 ,
Y + V y = [ x 1 + Δ x 1 y 1 + Δ y 1 z 1 + Δ z 1 x 2 + Δ x 2 y 2 + Δ y 2 z 2 + Δ z 2 x n + Δ x n y n + Δ y n z n + Δ z n ] n × 3 ,
l n is an n × 1 vector of ones. The operator denotes the Kronecker–Zehfuss product, and X i = [ x i y i z i ] T , X i = [ x i y i z i ] T . We find that Ψ = ( A + V A ) R T + l n t T t T Y V y is related to the estimated parameter ξ and random error e. We use a first-order Taylor expansion to Ψ and obtain a linear equation with respect to ξ and e:
Ψ J e δ e + J ξ δ ξ + Ψ ( e 0 , ξ 0 ) ,
where J e = Ψ e T , J ξ = Ψ ξ T , δ e = e e 0 , and δ ξ is the update step of the estimated parameter. We substitute Equation (8) into Equation (5) to obtain:
Φ m i n R , t e T P e + 2 λ T [ J e δ e + J ξ δ ξ + Ψ ( e 0 , ξ 0 ) ] ,
We take the partial derivative of Equation (9) with respect to e and the estimated parameter ξ to obtain:
0.5 × Φ e T = P e + B 0 T λ = 0 ,
0.5 × Φ ξ T = A 0 T λ = 0 ,
where B 0 = [ R I n I 3 I n ] and A 0 = J ξ . The derivations of these two parameters are given in Section 2.4. We combine Equations (8)–(11) and obtain iterative results:
δ ξ = ( J ξ T N 0 1 J ξ ) 1 J ξ T N 0 1 ω 0 ,
λ = N 0 1 ( J ξ δ ξ + ω 0 ) ,
e = P 1 J e T λ ,
where ω 0 = J e e + Ψ ( e 0 , ξ 0 ) . The initial value of the random error is e 0 = 0 , and ξ 0 = [ 0 0 0 0 0 0 ] T . We can use Equations (12)–(14) to update ξ .

2.3. Lie Algebra and Lie Group

Euler angle constructs rotation matrix as following equation:
R = [ c o s θ z s i n θ z 0 s i n θ z c o s θ z 0 0 0 1 ] [ c o s θ y 0 s i n θ y 0 1 0 s i n θ y 0 c o s θ y ] [ 1 0 0 0 c o s θ x s i n θ x 0 s i n θ x c o s θ x ] ,
where θ z , θ y , and θ x are, respectively, the rotation angles around the z-, y-, and x-axes. If θ y = π 2 , then the Euler angle is unsuitable for interpolation because of the gimbal lock problem. When the second rotation angle is 90 degrees, the rotation matrix constructed by the Euler angle loses z- and x-axis freedom. In this paper, we introduce Lie algebra and a Lie group to replace the Euler angle.
A group is a set of elements together with an operation that combines any two of its elements to form a third element also in the set. A Lie group is also a differential manifold, with the property that the group operations are smooth [17]. A Lie group must satisfy the four properties listed in Table 1.
A rotation matrix is a special orthogonal group, denoted by SO (3), which also belongs to a Lie group. A rigid transformation is in a special Euclidean group, denoted by SE (3), which also belongs to a Lie group. Every Lie group is associated with a Lie algebra. For example, a rotation matrix is associated with a three-dimensional vector ϕ , which is the angle-axis representation of the rotation matrix R. The rigid transformation matrix [ R t 0 1 ] is associated with the six-dimensional vector ξ . SO (3) is the Lie algebra corresponding to the Lie group SO (3), and SE (3) is the Lie algebra corresponding to the Lie group SE (3). A Lie algebra operation is defined by a Lie bracket. The Lie bracket of ϕ is:
[ ϕ 1 , ϕ 2 ] = ( ϕ 1 ϕ 2 ϕ 2 ϕ 1 ) ,
where ϕ is the antisymmetric matrix of vector ϕ .
The Lie bracket of ξ is:
[ ξ 1 , ξ 2 ] = ( ξ 1 ξ 2 ξ 2 ξ 1 ) ,
The operator “ ” has different definitions for the Lie algebra of SO (3) and SE (3). If ξ is in SE (3) space, then ξ = [ ϕ ρ 0 1 ] . If ξ is in SO (3) space, then ξ is equal to the antisymmetric matrix of vector ξ .
We can see from Equation (8) that a nonlinearity factor only exists in a rotation matrix. According to SO (3) and SE (3), we have two strategies to parameterize a rigid transformation matrix. The first is to use SO (3) and a translation vector to parameterize the transformation matrix. The second uses SE (3) directly to parameterize the transformation matrix. We will compare the performance of these two methods and come to a conclusion which method is more suitable for the TLS-ICP algorithm. Here, we provide two parameterization methods to calculate J ξ .
Method 1: The estimated parameter is [ ϕ ,t]:
[ R t 0 1 ] = [ e x p ( ϕ ) t 0 1 ] ,
Method 2: The estimated parameter is ξ = [ ϕ , ρ ] :
[ R t 0 1 ] = [ e x p ( ϕ ) J ρ 0 1 ] ,
where J = s i n θ θ I + ( 1 s i n θ θ ) a a T + 1 c o s θ θ a , θ is the norm of ϕ , and a is the unit vector of ϕ .
After obtaining δ ξ , we should update the estimated parameter ξ . If the parameter is in Euclidean space, such as a Euler angle, then the parameter can be updated using ξ k + 1 = ξ k + δ ξ . Here, we notice that Lie algebra does not belong to Euclidean space, and the operators “+” and “-” are undefined. We define a new plus operator, “ ,” which conforms to the Lie algebra update rule. If we use Lie algebra to parameterize a rotation matrix or transformation matrix, the parameter is updated as ξ k + 1 = ξ k δ ξ . Section 2.4 provides details of the update formula.

2.4. Jacobian of the GHM

J e = Ψ e T and J ξ = Ψ ξ T are needed to obtain the GHM model results. First, we change the form of equation Ψ to:
Ψ = ( A + V A ) R T + l n T t T Y V y = ( R I n ) × v e c ( A + V A ) + t l n v e c ( Y + V y ) ,
where e is linear in Equation (5), and J e is easily obtained as:
J e = [ Ψ v e c ( V A ) T Ψ v e c ( V y ) T ] = [ R I n I 3 I n ] 3 n × 6 n ,
where I n is an identity matrix of dimension n. Then we need to calculate J ξ = ψ ξ T .
Method 1: If we use parameterization method 1, then the Jacobian matrix is:
J ξ = [ Ψ [ ϕ 1 ϕ 2 ϕ 3 ] Ψ [ t 1 t 2 t 3 ] ] 3 n × 6 ,
ψ [ t 1 t 2 t 3 ] is easily obtained from Equation (20) as:
ψ [ t 1 t 2 t 3 ] = I 3 l n ,
ψ [ ϕ 1 ϕ 2 ϕ 3 ] can be simplified as follows:
ψ [ ϕ 1 ϕ 2 ϕ 3 ] = [ v e c ( ( A + V A ) R T ϕ 1 ) v e c ( ( A + V A ) R T ϕ 2 ) v e c ( ( A + V A ) R T ϕ 2 ) ] 3 n × 3 ,
According to deductions from Appendix A, we know that:
R p [ ϕ 1 ϕ 2 ϕ 3 ] = ( R p ) .
We let R ( X i + Δ X i ) = [ f i g i h i ] T , so we can obtain the following equation:
R ( X i + Δ X i ) [ ϕ 1 ϕ 2 ϕ 3 ] = [ f i ϕ 1 f i ϕ 2 f i ϕ 3 g i ϕ 1 g i ϕ 2 g i ϕ 3 h i ϕ 1 h i ϕ 2 h i ϕ 3 ] ,
The elements in Equation (26) can be obtained from Equation (25). Thus, ψ [ ϕ 1 ϕ 2 ϕ 3 ] is equal to:
v e c ( A + V A ) R T ϕ 1 = [ f 1 ϕ 1 g 1 ϕ 1 h 1 ϕ 1 f 2 ϕ 1 g 2 ϕ 1 h 2 ϕ 1 f n ϕ 1 g n ϕ 1 h n ϕ 1 ] n × 3 ,
v e c ( A + V A ) R T ϕ 2 = [ f 1 ϕ 2 g 1 ϕ 2 h 1 ϕ 2 f 2 ϕ 2 g 2 ϕ 2 h 2 ϕ 2 f n ϕ 2 g n ϕ 2 h n ϕ 2 ] n × 3 ,
v e c ( A + V A ) R T ϕ 3 = [ f 1 ϕ 3 g 1 ϕ 3 h 1 ϕ 3 f 2 ϕ 3 g 2 ϕ 3 h 2 ϕ 3 f n ϕ 3 g n ϕ 3 h n ϕ 3 ] n × 3 ,
The estimated parameters in method 1 are the Lie algebra of SO (3) and the translation vector. Thus, the update parameter is equal to [ Δ ϕ Δ t ] T . The translation vector is in Euclidean space, so it is easy to update the new translation variable: t k + 1 = t k + Δ t . Δ ϕ belongs to the Lie algebra of SO (3), and the updated formula is:
ϕ k + 1 = l n ( e x p ( Δ ϕ ) R k ) ,
R k is the kth step rotation matrix. The operator “ ” is defined in Section 2.4. The “ l n ( ) ” operator transforms the Lie group of SO (3) to the Lie algebra of SO (3). We do not provide specific expressions for “ l n ( ) ” here; these can be found in [17]. In Appendix A, we deduce the Jacobian of Equation (25) using left multiplication so that update Formula (30) also uses left multiplication. Thus, the method 1 parameter update formula is:
ξ k + 1 = ξ k δ ξ = [ t k + Δ t l n ( e x p ( Δ ϕ ) R k ) ] T ,
Method 2: If we use parameterization method 2, the Jacobian matrix is:
J ξ = [ Ψ [ ρ 1 ρ 2 ρ 3 ] Ψ [ ϕ 1 ϕ 2 ϕ 3 ] ] .
From Appendix B, we know that:
T p ξ = [ I ( R p + t ) ] ,
The left side of Equation (33) uses homogeneous coordinates, and the right side uses inhomogeneous coordinates. We transform homogeneous coordinate to inhomogeneous coordinates by default. We let T ( X i + Δ X i ) = [ f i g i h i ] T , so we can obtain the following equation:
T ( X i + Δ X i ) ξ = [ f i ρ 1 f i ρ 2 f i ρ 3 f i ϕ 1 f i ϕ 2 f i ϕ 3 g i ρ 1 g i ρ 2 g i ρ 3 g i ϕ 1 g i ϕ 2 g i ϕ 3 h i ρ 1 h i ρ 2 h i ρ 3 h i ϕ 1 h i ϕ 2 h i ϕ 3 ] ,
The elements in Equation (34) can be obtained by Equation (35). Thus, we have:
J ξ = [ f 1 ρ 1 f 1 ρ 2 f 1 ρ 3 f 1 ϕ 1 f 1 ϕ 2 f 1 ϕ 3 f n ρ 1 f n ρ 2 f n ρ 3 f n ϕ 1 f n ϕ 2 f n ϕ 3 g 1 ρ 1 g 1 ρ 2 g 1 ρ 3 g 1 ϕ 1 g 1 ϕ 2 g 1 ϕ 3 g n ρ 1 g n ρ 2 g n ρ 3 g n ϕ 1 g n ϕ 2 g n ϕ 3 h 1 ρ 1 h 1 ρ 2 h 1 ρ 3 h 1 ϕ 1 h 1 ϕ 2 h 1 ϕ 3 h n ρ 1 h n ρ 2 h n ρ 3 h n ϕ 1 h n ϕ 2 h n ϕ 3 ] 3 n × 6 ,
The estimated parameters in method 2 are the Lie algebra of SE (3). The update parameter is equal to Δ ξ , which belongs to the Lie algebra of SE (3), and the updated formula is:
ξ k + 1 = l n ( e x p ( Δ ξ ) T k ) ,
where T k is the kth step rigid transformation matrix. The Operator “ ” is defined in Section 2.4. The operator “ l n ( ) ” transforms the Lie group of SE (3) to the Lie algebra of SE (3). We provide no specific expressions for “ l n ( ) .” These can be found in [17]. In Appendix B, we deduce the Jacobian of Equation (33) using left multiplication, so that update Equation (36) also uses left multiplication. Thus, the method 2 parameter updated formula is:
ξ k + 1 = ξ k δ ξ = l n ( e x p ( Δ ξ ) T k ) ,

3. Experiments

In this section, we use the dataset from [9]. This numerical example is from an actual experiment of fitting two surfaces that are surveyed in two different reference systems. Four control points are chosen in two different coordinate systems. We assume that we have a known scale equal to 2.1, and we multiply the source coordinate by 2.1. Data from [9] are shown in Table 2. We compare the LS- and TLS-ICP algorithms using simulated data and demonstrate that the TLS-ICP algorithm is more accurate. Then we use real measurement data from Table 2 and demonstrate that the TLS algorithm has a smaller residual error than the LS method.
First, we compare results from TLS and LS using simulated data. A true translation vector is set to (190, 110, −15), and a rotation matrix is constructed by the Euler angle. The true rotation angles around the z-, y-, and x-axes are set to 45 degrees, 90 degrees, and 60 degrees, respectively. Then, we generate controlled points in target coordinates according to the true rotation matrix, true translation, and controlled points in the source coordinate. We add noise in the source and target coordinates according to two distributions: normal and uniform. We classify noise into eight classes, as shown in Table 3. The normal distribution is a Gaussian distribution with zero mean and a covariance. We use the uniform distribution to generate samples in some range, and every sample is generated by equal chance. In the first row of Table 3, 0.1 is the variance of the Gaussian distribution, and a noise number of 5 means that the uniform distribution generates samples ranging from −5 to 5.
The rotation error is:
E r r o r R = a c o s ( m a x ( m i n ( 0.5 ( Δ R ( 0 , 0 ) + Δ R ( 1 , 1 ) + Δ R ( 2 , 2 ) ) , 1 ) , 1 ) ,
where Δ R = R t r u e T R T L S , R T L S is the rotation matrix from the TLS algorithm, and R t r u e is the true rotation matrix. The error measure in Equation (38) describes how close Δ R is to the identity matrix. If Δ R is closer to the identity matrix, then our algorithm is more accurate. The translation error is evaluated as E r r o r t = t t r u e t T L S , where t T L S is the translation from the TLS algorithm, and t t r u e is the true translation.
If noise is generated by a normal distribution, then the information matrix p is set to the inverse of the variance. If noise is generated by a uniform distribution, then the information matrix p is set to the identity matrix. Figure 1 and Figure 2 show the rotation error and translation error, respectively, of least-squares, method 1, and method 2. We see from these figures that larger variances between the x-, y-, and z-axes lead to a larger error of the least-squares method. This is because the rotation matrix is obtained by the Procrustes approach [9], which assumes that noise in the x-, y-, and z-axes is equal. In this situation, the LS algorithm is nearly as accurate as the TLS algorithm, and we can see this result in the first column of Figure 1 and Figure 2. However, the TLS algorithm performs much better than the LS algorithm when variances between the x-, y-, and z-axes become large, as shown in the fourth column and the eighth column in Figure 1 and Figure 2. Method 1 is more accurate than method 2 in estimating the rotation matrix, but method 2 is more accurate than method 1 in estimating the translation vector. This phenomenon is caused by different parameterization approaches in these two methods. The parameterization of method 2 uses the Lie algebra of SE (3), which is a six-dimensional vector. The first three elements in this vector describe the translation and rotation matrices. The last three elements only describe the rotation matrix. The first three elements are optimized during the TLS iterative process, and then we recover the translation vector using the last three elements in the Lie algebra vector. The benefit of this is that the Jacobian matrix conditional number is not so large, which means that the estimated parameters equally decide the direction of optimization. In Method 1, the Jacobian matrix of ϕ is ( R p ) , and the Jacobian matrix of t is always the identity matrix. If p is very large, then the Jacobian matrix of ϕ mainly decides the direction of optimization, so that method 1 has a smaller rotation error than method 2.
Here, we directly use data from [12], which is an actual experiment of fitting two surfaces surveyed in two reference systems. Data are shown in Table 2, and the result is shown in Table 4. We give results of LS, TLS based on Euler angle, method 1, and method 2. Our two methods have much smaller sums of residual errors than the LS method. This is mainly because the TLS algorithm considers noise from the source and target coordinate systems. Further discussion of errors and the model are beyond the scope of this paper; refer to Grafarend [18]. Compared to the Euler angle method, our method has smaller SSE after optimization, which proves that Lie algebra is more suitable for the TLS-ICP algorithm. We should note that our method also can be used in similar transformation estimation. The difference is that the Jacobian of scale s is needed for additional calculations.
TLS-ICP algorithm often uses 4–8 points to calculate transformation between two coordinates in geological mapping. Thus, in previous experiments, datasets from [9] are used to evaluate accuracy. However, in the field of three-dimensional reconstruction, ICP algorithm also can be used to calculate robot pose. Thus, the cost time of ICP is very important. In our experiment, all of codes run on a laptop with 2.7 GHz quad cores in Ubuntu. We use 100 points, 500 points, and 1000 points, which are copied from [9], to evaluate the cost time of every step in our algorithm. The cost time of every iterative step is 0.2 ms using four points. The cost time of every iterative step is 380 ms using 100 points. The cost time of every iterative step is 46 s using 500 points. The cost time of every iterative step is 369 s using 1000 points. In our experiment, the process of our algorithm converges to final result after three or four steps.

4. Conclusions

In this paper, we present two total least-squares ICP algorithms based on Lie algebra using a GHM framework. These methods can estimate a rigid transformation matrix from adjusted source coordinates and adjusted target coordinates. Our methods perform better than the common least-squares ICP algorithm because they consider random noise from the source coordinate, which results in a smaller sum of squared errors. The most important contribution of this paper is that our methods are more robust than [12,19], which utilize the Euler angle to describe the rotation matrix. The nonlinearity in the cost function due to the rotation matrix results in there being no analytical solution to this problem. Thus, an iterative optimization algorithm is employed to solve the GHM model. The Euler angle is unsuitable for interpolation because of the gimbal lock problem. We replace the Euler angle with Lie algebra to execute the TLS optimization algorithm and give deduction of our method in detail.

Author Contributions

Conceptualization: Y.F.; data curation: Y.F. and H.Z.; formal analysis: Q.W.; methodology: Y.F.; project administration: Q.W.; resources: Y.F.; software: Y.F.; supervision: Q.W.; validation: Y.F.; visualization: H.Z.; writing—original draft: Y.F.; writing—review and editing: Q.W. and H.Z.

Funding

This research was funded by the projects of the National Key Research and Development Plan of China, grant number 2016YFB0502103, the National Natural Science Foundation of China, grant number 61601123, and the Natural Science Foundation of Jiangsu Province of China, grant number BK20160696.

Acknowledgments

This work was partially supported by State Key Laboratory of Smart Grid Protection and Control of China.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Appendix A

Target: We want to calculate Jacobian matrix of Rp with respect to Lie algebra of SO (3). Here we use left multiplication to calculate Jacobian matrix:
R p ϕ = l i m δ ϕ 0 e x p ( δ ϕ ) e x p ( ϕ ) p e x p ( ϕ ) p δ ϕ
We use first order Taylor series expansion to e x p ( δ ϕ ) and we obtain:
R p ϕ l i m δ ϕ 0 ( I + δ ϕ ) e x p ( ϕ ) p e x p ( ϕ ) p δ ϕ
R p ϕ = l i m δ ϕ 0 δ ϕ e x p ( ϕ ) p δ ϕ
R p ϕ = lim δ ϕ 0 ( R p ) δ ϕ δ ϕ
R p ϕ = lim δ ϕ 0 ( R p ) δ ϕ δ ϕ
R p ϕ = ( R p )

Appendix B

Target: We want to calculate Jacobian matrix of Tp with respect to Lie algebra of SE (3). Here we use left multiplication to calculate Jacobian matrix:
T p ξ = l i m δ ϕ 0 e x p ( δ ξ ) e x p ( ξ ) p e x p ( ξ ) p δ ξ
We use first order Taylor series expansion to e x p ( δ ξ ) and we obtain:
T p ξ l i m δ ξ 0 ( I + δ ξ ) e x p ( ξ ) p e x p ( ξ ) p δ ξ
T p ξ = l i m δ ξ 0 δ ξ e x p ( ξ ) p δ ξ
T p ξ = l i m δ ξ 0 [ δ ϕ ρ 0 0 ] [ R p + t 1 ] δ ξ
T p ξ = l i m δ ξ 0 [ δ ϕ ( R p + t ) + δ ρ 0 ] δ ξ
T p ξ = [ I ( R p + t ) 0 0 ]

References

  1. Rusinkiewicz, S. Efficient variants of the ICP algorithm. Proc. 3DIM 2001, 1, 145–152. [Google Scholar]
  2. Mur-Artal, R.; Montiel, J.M.M.; Tardós, J.D. Orb-slam: A versatile and accurate monocular slam system. IEEE Trans. Robot. 2015, 31, 1147–1163. [Google Scholar] [CrossRef] [Green Version]
  3. Kreiberg, D.; Söderström, T.; Yang-Wallentin, F. Errors-in-variables system identification using structural equation modeling. Automatica 2016, 66, 218–230. [Google Scholar] [CrossRef] [Green Version]
  4. Horn, B.K.P. Closed-form solution of absolute orientation using unit quaternions. Repr. J. Opt. Soc. Am. A 1987, 4, 629–642. [Google Scholar] [CrossRef]
  5. Kummerle, R.; Grisetti, G.; Strasdat, H.; Konolige, K.; Burgard, W. G2o: A general framework for graph optimization. In Proceedings of the 2011 IEEE International Conference on Robotics and Automation, Shanghai, China, 9–13 May 2011. [Google Scholar]
  6. Golub, G.H.; Van Loan, C.F. An Analysis of the Total Least Squares Problem. SIAM J. Numer. Anal. 1980, 17, 883–893. [Google Scholar] [CrossRef]
  7. Shen, Y.; Li, B.; Chen, Y. An iterative solution of weighted total least-squares adjustment. J. Geod. 2011, 85, 229–238. [Google Scholar] [CrossRef]
  8. Mahboub, V. On weighted total least-squares for geodetic transformations. J. Geod. 2012, 86, 359–367. [Google Scholar] [CrossRef]
  9. Felus, Y.A.; Burtch, R.C. On symmetrical three-dimensional datum conversion. GPS Solut. 2009, 13, 65–74. [Google Scholar] [CrossRef]
  10. Estépar, R.S.J.; Brun, A.; Westin, C.F. Robust Generalized Total Least Squares Iterative Closest Point Registration. Medical Image Computing and Computer-Assisted Intervention—MICCAI 2004. MICCAI 2004. In Lecture Notes in Computer Science; Barillot, C., Haynor, D.R., Hellier, P., Eds.; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3216. [Google Scholar]
  11. Ohta, N.; Kanatani, K. Optimal estimation of three-dimensional rotation and reliability evaluation. IEICE Trans. Inf. Syst. 1998, 81, 1247–1252. [Google Scholar]
  12. Fang, X. A total least squares solution for geodetic datum transformations. Acta Geod. Geophys. 2014, 49, 189–207. [Google Scholar] [CrossRef]
  13. Chang, G. On least-squares solution to 3D similarity transformation problem under Gauss–Helmert model. J. Geod. 2015, 89, 573–576. [Google Scholar] [CrossRef]
  14. Fang, X. Weighted total least-squares with constraints: A universal formula for geodetic symmetrical transformations. J. Geod. 2015, 89, 459–469. [Google Scholar] [CrossRef]
  15. Wang, B.; Li, J.; Liu, C.; Yu, J. Generalized total least squares prediction algorithm for universal 3D similarity transformation. Adv. Space Res. 2017, 59, 815–823. [Google Scholar] [CrossRef]
  16. Koch, K. Robust estimations for the nonlinear Gauss Helmert model by the expectation maximization algorithm. J. Geod. 2014, 88, 263–271. [Google Scholar] [CrossRef]
  17. Barfoot, T.D. State Estimation for Robotics; Cambridge University Press: Cambridge, UK, 2017. [Google Scholar]
  18. Teunissen, P. Applications of linear and nonlinear models: Fixed effects, random effects, and total least squares. Surveyor 2012, 58, 339–340. [Google Scholar] [CrossRef]
  19. Schaffrin, B.; Felus, Y.A. On the multivariate total least-squares approach to empirical coordinate transformations. Three algorithms. J. Geod. 2008, 82, 373–383. [Google Scholar] [CrossRef]
Figure 1. The rotation error is compared between least-squares and our proposed methods. The blue, green, and yellow bars are the rotation errors of least-squares, method 1, and method 2, respectively. The x-axis of this figure is a different noise class shown in Table 3.
Figure 1. The rotation error is compared between least-squares and our proposed methods. The blue, green, and yellow bars are the rotation errors of least-squares, method 1, and method 2, respectively. The x-axis of this figure is a different noise class shown in Table 3.
Applsci 09 05352 g001
Figure 2. The translation error is compared between least-squares method and our proposed methods. The blue, green, and yellow bars are the translation errors of least-squares, method 1, and method 2, respectively. The x-axis of this figure is a different noise class shown in Table 3.
Figure 2. The translation error is compared between least-squares method and our proposed methods. The blue, green, and yellow bars are the translation errors of least-squares, method 1, and method 2, respectively. The x-axis of this figure is a different noise class shown in Table 3.
Applsci 09 05352 g002
Table 1. Properties for Lie group. R 1 , R 2 , R 3 S O ( 3 ) . T 1 , T 2 , T 3 S E ( 3 ) .
Table 1. Properties for Lie group. R 1 , R 2 , R 3 S O ( 3 ) . T 1 , T 2 , T 3 S E ( 3 ) .
PropertySO (3)SE (3)
Closure R 1 R 2 S O ( 3 ) T 1 T 2 S E ( 3 )
Associativity R 1 ( R 2 R 3 ) = ( R 1 R 2 ) R 3 = R 1 R 2 R 3 T 1 ( T 2 T 3 ) = ( T 1 T 2 ) T 3 = T 1 T 2 T 3
Identity R 1 1 = 1 R 1 = R 1 S O ( 3 ) T 1 1 = 1 T 1 = T 1 S E ( 3 )
Invertibility R 1 1 S O ( 3 ) T 1 1 S E ( 3 )
Table 2. A numerical example.
Table 2. A numerical example.
Point No.Source xSource ySource zTarget x’Target y’Target z’
163842129015015
22108421420802
32102732154020020
463273213903005
Table 3. Noise type and variance for each class.
Table 3. Noise type and variance for each class.
Noise NumberNoise TypexyzNoise NumberNoise Typexyz
1Normal0.10.10.15Uniform555
2Normal0.10.516Uniform51020
3Normal0.10.50.57Uniform51010
4Normal0.1118Uniform52020
Table 4. The comparision between Lie algebra TLS, Euler Angle TLS and common LS algorithm.
Table 4. The comparision between Lie algebra TLS, Euler Angle TLS and common LS algorithm.
Estimated ParameterEuler MethodEstimated ParameterMethod 1LSEstimated ParameterMethod 2LS
Z-axis angle (rad)2.516 ϕ 1 0.02077930.02066 ξ 1 151.836151.834
Y-axis angle (rad)−3.137 ϕ 2 −0.011339−0.0112 ξ 2 175.062175.066
X-axis angle−3.119 ϕ 3 −0.625356−0.6254 ξ 3 −17.5989−17.6049
t 1 195.23 t 1 195.231195.23 ξ 4 0.020650.02066
t 2 118.064 t 2 118.064118.067 ξ 5 0.01126230.01128
t 3 −15.138 t 3 −15.1442−15.143 ξ 6 −0.62536−0.6253
SSE1.14SSE0.056468.577SSE0.00505668.577

Share and Cite

MDPI and ACS Style

Feng, Y.; Wang, Q.; Zhang, H. Total Least-Squares Iterative Closest Point Algorithm Based on Lie Algebra. Appl. Sci. 2019, 9, 5352. https://doi.org/10.3390/app9245352

AMA Style

Feng Y, Wang Q, Zhang H. Total Least-Squares Iterative Closest Point Algorithm Based on Lie Algebra. Applied Sciences. 2019; 9(24):5352. https://doi.org/10.3390/app9245352

Chicago/Turabian Style

Feng, Youyang, Qing Wang, and Hao Zhang. 2019. "Total Least-Squares Iterative Closest Point Algorithm Based on Lie Algebra" Applied Sciences 9, no. 24: 5352. https://doi.org/10.3390/app9245352

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop