Skip to main content
. Author manuscript; available in PMC: 2015 Aug 6.
Published in final edited form as: Inf Process Med Imaging. 2015;24:411–423. doi: 10.1007/978-3-319-19992-4_32

Algorithm 2.

Computing Wasserstein Distance

Input: Two topological spherical surfaces (S1, g1), (S2, g2).
Output: The Wasserstein distance between S1 and S2.
 1. Scale and normalize S1 and S2 such that the total area of each surface is 4π.
 2. Compute the conformal maps by [21] ϕ1:S1S2 and ϕ2:S2S2, where S2 is the unit
 sphere, and ϕ1 and ϕ2 are with normalization conditions: the mass center of the image points
 are at the sphere center.
 3. Compute the conformal factors λ1 and λ2 by [8]. Construct the measure μe1dA.
 4. Discretize S2 into a discrete point set with measure (P, ν), where ν is computed by Eqn. 3.
 5. With (S2,μ) and (P, ν) as inputs of Algorithm 1, we compute the Riemannian Optimal
 Mass Transport map.
 6. Wasserstein distance between S1 and S2 can be computed by Eqn. 4.