|
Algorithm 2: Optimal transformation search. |
|
input: ModelS and DataT with normals of size (N is the scale of Model/Data) |
|
output: transformation T, correlation , iteration
|
|
1
|
initialize
|
|
2
|
extract normals and from S and T
|
|
3
|
; |
// see Equation (8)
|
|
4
|
while
and
do
|
|
5
|
estimate initial transformation with Equations (15)∼(18) |
|
6
|
|
|
7
|
calculate ; |
// see Equation (19)
|
|
8
|
|
|
9
|
if
then
|
|
10
|
if
then
|
|
11
|
|
|
12
|
end if
|
|
13
|
|
|
14
|
|
|
15
|
|
|
16
|
end if
|
|
17
|
if
and
then
|
|
18
|
; |
// see Equation (20)
|
|
19
|
|
|
20
|
|
|
21
|
end if
|
|
22
|
|
|
23
|
end while
|