|
Algorithm 2 Least squares alignment of two 3D point sets based on SVD |
| 1: |
procedure |
|
| 2: |
Let and two sets with corresponding points. |
| 3: |
function AlignmentSVD() |
|
| 4: |
|
▷ mean of the data point set X
|
| 5: |
|
▷ mean of the data point set Y
|
|
|
|
| 6: |
|
▷ cross covariance between X and Y
|
|
|
|
| 7: |
|
▷ singular value decomposition of H
|
|
|
|
| 8: |
|
▷ rotation matrix |
| 9: |
|
▷ translation vector |
|
|
|
| 10: |
|
▷ extrinsic parameter matrix |
|
|
|
| 11: |
return
|
|
| 12: |
end function
|
|
| 13: |
end procedure |
|