Skip to main content
. Author manuscript; available in PMC: 2016 Nov 4.
Published in final edited form as: IEEE Trans Med Imaging. 2016 Jun 2;35(11):2413–2424. doi: 10.1109/TMI.2016.2576360
ALGORITHM I: Inversion of Diffeomorphisms

Input Input diffeomorphism (ϕ−1)
Maximum number of iterations (N)
Gradient magnitude tolerance (γI)
Step size (ε)

Output Inverse diffeomorphism (ζ)

1 Initialize ζ = Id and δ = 0
For iteration k < N
2  Compute ∇ζEId(ζk−1) using (16)
3  Compute the maximum gradient magnitude
δ=maxxΩ{ζEId(ζk1)(x)2}
4  If δ < γI, Stop.
5  Update the inverses, ζk = ζk−1εζEId (ζk−1)

In this work, we use ε = 0.5, γI = 0.01, and N = 25 iterations.