点云配准算法-旋转矩阵估计-Kabsch-Umeyama algorithm
Kabsch-Umeyama algorithm
参考文献:
面向点云配准,最小化两点集均方根误差(RMSD, root mean squared deviation) 来计算最佳旋转矩阵。
注:该算法只能计算旋转矩阵,做点云配准还需要计算平移向量。当平移和旋转都正确计算出,该算法有时也叫partial Procrustes superimposition (see also orthogonal Procrustes problem)
步骤:
- a translation
- the computation of a covariance matrix
- the computation of the optimal rotation matrix
First Step: Translation
将两组点集的质心对齐坐标系原点:
P
^
=
∣
∣
P
−
P
c
e
n
t
r
o
i
d
∣
∣
1
\hat{P} = || P - P_{centroid} ||_1
P^=∣∣P−Pcentroid∣∣1
Second Step: calculate the covariance matrix
calculate the corrs-covariance matrix
H
H
H between
P
P
P and
Q
Q
Q
H
=
P
T
Q
H = P^TQ
H=PTQ
Third Step: calculate the optimal rotation matrix
base calculating formula:
R
=
(
H
T
H
)
1
2
H
−
1
R=(H^TH)^{\frac{1}{2}}H^{-1}
R=(HTH)21H−1
但是如果出现一些特殊情况,例如:
H
H
H 不存在逆矩阵时,上述公式变得复杂,甚至不可解。所以一般都会使用SVD(奇异值分解,singular value decomposition)变换上述公式。
S
V
D
:
H
=
U
Σ
V
T
SVD: H=U\Sigma V^T
SVD:H=UΣVT
并且校正旋转矩阵确保在一个右手坐标系,最终计算最佳旋转矩阵
R
R
R 。
d
=
s
i
g
n
(
d
e
t
(
V
U
T
)
)
d = sign(det(VU^T))
d=sign(det(VUT))
R = V ( 1 0 0 0 1 0 0 0 d ) U T R = V \begin{pmatrix} 1&0&0\\0&1&0\\0&0&d\end{pmatrix}U^T R=V 10001000d UT
最佳旋转矩阵还可以用四元数(quaternions来表示)
Generalizations
The algorithm was described for points in a three-dimensional space. The generalization to D dimensions is immediate.
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)