Field of the Invention
The present invention relates to a computing method, especially to a method for computing spherical conformal and Riemann mappings applied to brain mapping, surface classification and global surface parameterizations.
Descriptions of Related Art
Conformal surface parameterizations have been studied intensively, and most works deal with genus zero surfaces. The basic approaches are harmonic energy minimization, Cauchy-Riemann equation approximation, Laplacian operator linearization, angle-based flattening method and circle packing, among others. In harmonic energy minimization, a discrete harmonic map is introduced to approximate the continuous harmonic map by minimizing a metric dispersion criterion. Due to the conformal nature of harmonic maps from a genus zero closed surface to the unit sphere, Gu and Yau et. al proposed a nonlinear optimization method for genus zero closed surface by minimizing the harmonic energy iteratively on the unit sphere until convergence to a harmonic map. The method has been applied to brain mapping, surface classification and global surface parameterizations.
The evolution of computing a conformal map f from genus zero closed surfaces to the unit sphere is carried out by a nonlinear heat diffusion equation:
with f to be constrained on the unit sphere. The explicit (forward) Euler method has been used to produce a steady-state solution of the nonlinear heat diffusion equation (1) in some researches. The explicit scheme is attractive for its simplicity. Unfortunately, it is known to have a small stability region that leads to extremely small time steps. While the implicit (backward) Euler method has a much larger stability region, it involves nonlinear systems. In this step, it is crucial to have a successful iterative method and a good way to produce the associated initial guess when the time step is relatively large. To tackle this challenging problem, the semi-implicit Euler methods have been proposed to simplify the nonlinearity of the systems and improve the computational cost in each iteration.
Therefore it is a primary object of the present invention to provide a method for computing spherical conformal and Riemann mappings that solves a nonlinear heat diffusion equation by a two-phase approach for the underlying quasi-implicit Euler method (QIEM). Phase-I QIEM is used to quickly find an approximate solution which is close to the steady state solution. Then Phase-II QIEM is applied to compute the steady state solution using the approximate solution produced by Phase-I QIEM. The advantages of the two-phase QIEM are that it only needs to solve a linear system and allows a large time step in each iteration. For the iterative methods of solving the steady state ordinary differential equation (ODE) systems, the adaptive methods for controlling the time step in each iteration are proposed to accelerate its convergence. The present invention not only uses a heuristic method to estimate the initial time step but also develops an adaptive method to control the time step so that the two-phase QIEM possesses high performance. Promising numerical results illustrate the efficiency and stability of the present method.
In order to achieve the above objects, a method for computing spherical conformal and Riemann mappings according to the present invention includes the following steps. First carry out evolution of computing a conformal map f from a genus zero closed surface to the unit sphere (the spherical conformal mapping) as well as from a simply connected surface with a single boundary to a 2D disk (the Riemann mapping) by a nonlinear heat diffusion equation. Then solve the nonlinear heat diffusion equation by a quasi-implicit Euler method (QIEM). Next analyze convergence of the QIEM under some simplifications. Lastly accelerate the convergence of the QIEM by using a two-phase approach for the quasi-implicit Euler method to estimate an initial time step and an adaptive method to control the time step.
The structure and the technical means adopted by the present invention to achieve the above and other objects can be best understood by referring to the following detailed description of the preferred embodiments and the accompanying drawings, wherein:
In order to learn functions and features of the present invention, please refer to the following embodiments with detailed descriptions and the figures.
First the spherical conformal mapping for genus zero closed surfaces from the point of view that a map is conformal if and only if it is harmonic is introduced. That means how to use the heat flow method to deform a mapping into the harmonic mapping under a special normalization condition is also introduced.
where {kij} forms a set of harmonic weights assigned on each edge [vi, vj] ∈ M and is chosen such that the quadratic form of (2b) is positive definite.
in which kij are the harmonic weights in (2b).
Let f (v) and n(f(v)) denote the image of the vertex v ∈ M and the normal on the target plane at f(v), respectively. Then the normal and tangent components of Δdf are defined as
(Δdf(υ))⊥=<Δdf(υ), n(f(υ))>n(f(υ)) (4)
and
(Δdf(υ))∥=Δdf(υ)−(Δdf(υ))⊥, (5)
respectively, where <•, •> denotes the inner product in 3. Moreover, a map f: M1→M2 is harmonic, if and only if f only has a normal component, and the tangential component is zero, i.e.,
Δdf=(Δdf)⊥. (6)
for i, j=1, n and define A≡[aij] ∈ n×n, then the discrete Laplacian operator Δdf in (2) can be represented as the matrix form
Δdf=Af=(Af1,Af2,Af3). (8)
Many different ways are proposed to determine the edge weights kij in (2) so that the associated coefficient matrix A in (7) is symmetric positive semi-definite. A widely used edge weighting is the cotangent weighting. The matrix A associated with cotangent weights has been shown to be symmetric positive semi-definite.
A classical way to find the harmonic map f: M→2 is to minimize the discrete harmonic energy (2) by time evolution according to the nonlinear heat diffusion process
However, f(M, t) is constrained on the unit sphere 2 so that it needs to project −Δdf onto the tangent plane of the sphere. Therefore, from (4)-(6), the evolution of f is according to the nonlinear heat diffusion equation:
One major difficulty is that the solution to the conformal mapping from M to 2 is not unique but forms a Möbius group. In order to determine a unique solution, the additional zero mass-center constraint is required.
∫M
where dσM1 is the area element on M1. All conformal maps from M to 2 satisfying the zero mass-center constraint are unique up to the Euclidean rotation group.
The spherical conformal mapping for genus zero closed surfaces can be utilized to find a conformal mapping (Riemann mapping) from a simply connected surface M with a single boundary ∂M to a two-dimensional (2D) unit disk . The procedures for finding Riemann mapping are stated as follows. For a given simply connected triangular mesh M with boundary ∂M, there exists a symmetric closed surface Mc, called a double covering of M, which covers M twice, i.e., for each face in M, there are two preimages in Mc. Applying the spherical conformal mapping to Mc, a conformal map from Mc to the unit sphere
2 is found. Next, a Möbius transformation τ:
→
is used to adjust the conformal map such that ∂M is mapped to the equator of the unit sphere. Finally, the stereographic projection φ:2→
is applied to map the lower hemisphere conformally to the unit disk .
Solving the steady state problems in (10) is the most time consuming step in finding conformal mappings. Thus an efficient algorithm is provided to solve (10).
The following definition is given for convenience.
the operator u, v
is denoted as
u, v
=diag(u1v1T, . . . , unvnT).
For solving the steady state problem in (10), an explicit (forward) Euler method has been proposed by the following updating
Here the matrix A is the coefficient matrix of the Laplacian operator as in (7) with the edge weights kij. The advantage of the explicit Euler method is that it only needs matrix-vector multiplications in each iteration. By choosing time step δt carefully, the associated energy can be monotonically diminished at each iteration, for example, when δt is chosen close to the square of the minimum of the edge lengths of M. However, in order to ensure numerical stability, the explicit technique always requires a very small time step which results in a significant drawback—a very slow convergence rate.
To remedy this obstacle, one may apply the implicit (backward) Euler method, which is A-stable over a wide range of time steps, to solve (10) as follows:
or equivalently,
[I+(δt)A]f(m+1)−(δt)Af(m+1), f(m+1)
f(m+1)=f(m).
The above equation may be rewritten as the nonlinear systems F(f(m+1), f(m))=0, where
F(f(m+1), f(m))≡−vec(f(m))+{(I3[I+(δt)A])−(δt)(I3
Af(m+1), f(m+1)
)}vec(f(m+1)). (12)
The unknown vectors f(m+1) of F(f(m+1), f(m) ) can be solved by Newton's method
vec(fi+1(m+1))=vec(fi(m+1))−J(fi(m+1))−1F(fi(m+1), f(m)) (13)
with f0(m+1)=f(m), where J (f(m+1)) is the Jacobian matrix of F(f(m+1), f(m)).
The implicit Euler method in (11) requires to solve a linear system if Newton's method is applied. Although the Jacobian matrix J (fi(m+1)) can be reordered as a banded matrix so that direct methods can be applied, its size is enlarged to three times that of the matrix A.
In order to avoid solving the nonlinear system in implicit Euler methods, some semi-implicit Euler methods have been proposed to improve the computational cost in each iteration. Based on these, the following quasi-implicit Euler method (QIEM) is proposed for solving the nonlinear heat diffusion equation in (10):
That is, in each iteration, the new vector f(m+1) is generated by solving the linear system
[I+δt(A−Af(m), f(m)
)]f(m+1)=f(m). (14)
As an implicit Euler method, the QIEM has a wider range of stable time steps. Moreover, QIEM is much more efficient than the implicit Euler method by comparing the computational costs of solving the linear systems in (13) and (14).
In this section, the convergence of QIEM under the simplification of normalization of f(m+1) is analyzed.
The QIEM with simplification of the normalization of f(m+1) is stated as follows. Given f(0) ∈n×3 with
for i=1, . . . , n, i.e., ∥f(0)∥F=1, f(m+1) is defined by
for m=0, 1, . . . , where
A
m
=I+δt(A−Af(m), f(m)
), (16)
D
m
=
A
m
−1
f
(m)
, A
m
−1
f
(m)
. (17)
for i=1, . . . , n and ∥f(m+1)∥F=1.
Let us consider the Schur decomposition
Q
mΛmQmT=A−Af(m), f(m)
, (18)
where Qm≡[q1,m, . . . , qn,m]T is orthonormal and Λm=diag(λ1(m), . . . , λn(m)) with λi(m) being the eigenvalues. It is assumed λi(m)≠0 for i=1, . . . , n. Then
where Om (1/δt) is dependent on (i,m). Given a small positive value ηm>0, there exists T0>0 such that
which implies that
By the definition of f(m+1) in (15), it holds that
for δt>0, where λm>0.
for all
where T0 is defined in (20).
(√{square root over (n)}amλm−3)δt>√{square root over (n)}am, for δt>T1
which is equivalent to
−3δt>√{square root over (n)}am(1−δtλm)
and then
3δt<√{square root over (n)}am|1−δtλm|. (25)
Combing the results in (21) and (25), it holds that
αm≡am√{square root over (n)}λmλm−1−3b(1+1/√{square root over (n)})>0, (26)
where b≡max1≦i≦n∥eiT A∥2·. Then
for all
where T0 is defined in (20) and
βm=−am√{square root over (n)}(λm+λm−1), γm=αm√{square root over (n)}.
Proof. By the definition of Am in (16), it holds that
βm24αmγm=nam2(λm−λm−1)2+12√{square root over (n)}amb(1+1/√{square root over (n)})>0.
which implies that
√{square root over (n)}am [1−(λm+λm−1)δt+λmλm−1(δt)2]>3b(1+1/√{square root over (n)})(δt)2.
3(|λm|+|λm−1|)(b+b/√n)+6|λmλm−1|<√{square root over (n)}amam−1cmλm2λm−12|λm|, (31)
where ηm is defined in (20) and
for δt≧T3.
for δt≧T0, which implies that
for δt≧T3 with large enough T3.
∥Em∥F≡∥f(m+1)−f(m)∥F<∥f(m)−f(m−1)∥F≡∥Em−1∥F
for all δt>T.
∥eiTf(m−1)∥2=1, for i=1, . . . , n. (37)
Let
f
(m)
=A
m−1
−1
f
(m−1)
, f
(m+1)
=A
m
−1
f
(m),
where Am is defined in (16) and
αm=λm−1λm, (38)
βm=λm+λm−1+4b√{square root over (n)}. (39)
where λm is defined in (23). Then f(m−1), f(m) and f(m+1) satisfy the following result.
∥Af(m), f(m)
−
Af(m), f(m−1)
∥2<b∥Em∥F. (46)
which implies that
How to efficiently compute the steady state solution of (10) with zero mass-center normalization by QIEM will be discussed.
1. The Initial Mapping f(0)
For the spherical conformal mapping on genus-zero closed surfaces, the initial map f(0) in (14) is to construct an one-to-one and onto smooth map from a given genus-zero closed surface to the unit sphere. In practice, the Gauss map is used as the initial map f(0), which is defined as follows:
For the case of simply connected surfaces with a single boundary, i.e., computing the Riemann mapping, the idea described in Connectivity shapes in proceedings of IEEE Visualization 2001, pp. 135-142, IEEE Computer Society, 2001 to construct a harmonic-type initial map. Specifically, first the open surface is parametrized onto a unit disk by the harmonic map. Using the stereographic projection, the resulting mesh is mapped to a lower hemisphere. Then the harmonic-type initial map is obtained by reflecting the hemisphere's image along the equatorial plane to built a full unit sphere.
The convergence of solving the steady state solution of the time-dependent differential equations with fixed time step δt may be very slow. In order to accelerate the convergence, a time step controlling scheme is proposed to control δt in (14) for each iteration m. As a consequence, the sequence {f(m)} can be convergent as soon as possible.
Let δt0 be an initial time step and δtmax denote the maximal time step so that δt is set to be δtmax if δt>δmax. The strategy of choosing δt in each iteration is based on the decrement of the harmonic energy εh(f), i.e., the time steps are chosen such that the harmonic energy is always decreasing in each iteration. This objective can be achieved by the descending and accelerating strategies of time step controls. The descending strategy is used to determine δt so that εh(f(m+1)) is always decreasing, i.e., εh(f(m+1))−εh(f(m))<ε, in each m=0, 1, . . . , k for some k and tolerance ε. Given ε, δt0 and an increment α, the strategy is described as follows.
The iteration in (14) with the descending strategy is repeated till εh(f(m+1)) is closed enough to εh(f(m)). After the descending strategy, the following accelerating strategy is used to increase δt and to speed up the convergence further.
To determine the initial map f(0) in (14) is a crucial cornerstone to implement the QIEM for the evolution of conformal mappings on the unit sphere or on the unit disk. If f(0) is not close to the steady state solution, then it is difficult to find a large stable convergence region of the time steps for solving (10) by QIEM with time step controlling strategies (S2.a), (S2.b) and (S2.c). To remedy this drawback, a two-phase QIEM is proposed. If f(0) is not close to the steady state solution, the heuristic phase-I QIEM
is used to compute f(m+1). When f(m) is close to the steady state solution, switch to (14) with strategies (S2.a), (S2.b) and (S2.c) for computing f(m+1). This is called the phase-II QIEM.
To set up a robust phase-I QIEM, an adaptive method is also proposed, just as the phase-II QIEM, to control δt in each iteration. The strategy described as follows is repeated until the difference |εh(f(m+1))−εh(f(m))| of the energy is less than a given tolerance ε3.
It is important to determine δt0 for solving the steady state problem. In general, the explicit Euler method has extremely narrow stability region of time steps which leads to the extremely slow convergence. The implicit Euler method has considerably wider stability region. However, it involves nonlinear systems that have to be solved by iterative solvers. If the time step is larger, then the initial guess of the iterative solver must be unrealistically close to the solution of the nonlinear systems. For two phases of QIEM, a heuristic method is proposed in Algorithm 1 to determine an initial time step. Comparing the initial time step in Algorithm 1 with those for the explicit and implicit Euler methods, the proposed time step is large.
(I+(δt)A)f(m+1)=f(m).
{I+δt(A−Af(m), f(m)
)}f(m+1)=f(m).
The performances of the computation of Riemann and sphere conformal mappings are evaluated by numerical experiments. The benchmark problems come from the eight different facial expressions for a person in
All computations are carried out in MATLAB 2011b on a HP workstation with two Intel Quad-Core Xeon X5687 3.6 GHz CPUs, 48 GB main memory and RedHat Linux operation system, using IEEE double-precision floating-point arithmetic.
The efficiency of Algorithm 1 in solving the nonlinear heat diffusion equation (10) with zero mass center by (i) comparing the efficiency of the explicit, implicit and quasi-implicit Euler methods, (ii) robustness in choosing initial time step and (iii) high performance computing for the benchmark human faces in
The adaptive controlling time step is not only robust for the human face problems but also for other benchmark problems.
The high performance of Algorithm 1 in computing Riemann mapping has been numerically illustrated. In this subsection, the importance of phase-I QIEM in computing spherical conformal mapping is demonstrated and then the performance for Algorithm 1 in solving the benchmark problems in
In summary, a mapping is conformal if and only if it is harmonic for genus zero closed surfaces. A traditional way to find the harmonic map is to minimize the harmonic energy by the time evolution according to the nonlinear heat diffusion (10). For this, an efficient quasi-implicit Euler method (QIEM) is proposed and applied it to compute conformal mappings from a genus zero closed surface to the unit sphere 2 (the spherical conformal mapping) as well as from a simply connected surface with a single boundary to a 2D disk D (the Riemann mapping). Furthermore, the convergence of the QIEM under some simplifications is analyzed. In order to accelerate the convergence of this method, a variant time step scheme and a heuristic method to determine an initial time step have been developed. Numerical results validate that the proposed algorithms possess high performance for computing the Riemann mapping. For the spherical conformal map, a two-phase QIEM is proposed. In phase I QIEM, the normal component of Δdf is omitted to accelerate the computed map close to the steady state solution as soon as possible. When the computed map is close to the steady state solution in phase-I QIEM, it is switched to the adaptive time step controlling phase-II QIEM. Numerical results confirm that the two-phase QIEM also possesses high performance for computing the spherical conformal map.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details, and representative devices shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.