1: |
αi(t) ← 0 for all i = 1, …, N and all t
|
2: |
c0 ← initial positions of control points (input) |
3: |
repeat {Gradient descent} |
4: |
{Compute path of control points (forward integration)} |
5: |
|
6: |
{Compute deformed source image (backward integration)} |
7: |
|
8: |
{Compute gradient of source image} |
9: |
∇yk(0)E = 2 (I0(yk(0)) - I1(yk)) ∇yk(0)I0
|
10: |
{Compute auxiliary variable ηy(forward integration)} |
11: |
|
12: |
{Compute auxiliary variable ηc (backward integration)} |
13: |
|
14: |
{Solve the linear system} |
15: |
(η̃y is of dimension 3N) |
16: |
{Compute gradient} |
17: |
|
18: |
{Update time-varying momenta} |
19: |
αi(t) ← αI(t) − ε∇αiJ(t) |
20: |
{Update initial positions of control points} |
21: |
|
22: |
until Convergence |