Geometry-Based Distortion Measures For Space Deformation - Emil Saucan

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/321715579

Geometry-based distortion measures for space deformation

Preprint · December 2017


DOI: 10.13140/RG.2.2.22748.08320

CITATIONS READS

0 359

3 authors, including:

Emil Saucan Alexander Naitsat


ORT Braude College Technion - Israel Institute of Technology
156 PUBLICATIONS 1,340 CITATIONS 19 PUBLICATIONS 98 CITATIONS

SEE PROFILE SEE PROFILE

All content following this page was uploaded by Emil Saucan on 10 December 2017.

The user has requested enhancement of the downloaded file.


IRWIN AND JOAN JACOBS
CENTER FOR COMMUNICATION AND INFORMATION TECHNOLOGIES

Geometry-based distortion
measures for space deformation

Alexander Naitsat, Emil Saucan


and Yehoshua Y. Zeevi

CCIT Report #915


December 2017

Electronics
Computers THE ANDREW & ERNA VITERBI FACULTY OF ELECTRICAL ENGINEERING
Communications TECHNION—ISRAEL INSTITUTE OF TECHNOLOGY, HAIFA 3200003, ISRAEL
CCIT Report #915 December 2017

Geometry-based distortion measures for space deformation

Alexander Naitsata , Emil Saucana,b , Yehoshua Y. Zeevia


a Electrical Engineering Department, Technion, Haifa, Israel
b Applied Mathematics Department, ORT Braude College, Karmiel, Israel

ARTICLE INFO ABSTRACT

We present a framework for optimizing a rich family of geometry-based energies de-


Keywords: Digital Geometry Process- fined on planes, surfaces and volumetric domains. Our approach is based on the concept
ing, Shape Deformation, Distortion Min- of first order distortion measures and on the steepest descent optimization. Specifically,
imization, Quasi-Conformal Mappings, we present an algorithm for inducing optimal deformations for triangular and tetra-
Triangle and Tetrahedral meshes. hedral meshes. The resulting techniques apply to a variety of geometry processing
problems, including ones that are highly non-convex. Among these problems are defor-
mation and parametrization of planes, surfaces and volumetric meshes, surface mapping
using volumetric textures, generation of triangular and tetrahedral meshes. In particu-
lar, the proposed techniques can be employed to devise “as close to being conformal
as possible” mappings and other deformations that are nearly optimal with respect to
related distortion measures, such as the isometric distortion and the distortion of a local
volume. Tests, carried out on 2D and 3D data, show that the optimization process is
numerically stable and fast-converging. Our approach is general and it can be run in
parallel processes.

1. Introduction

A wide class of problems considered in geometry processing


and computer graphics involve computation of mappings be-
tween domains in Euclidean space. These problems are often
formulated in terms of geometric energies that assess the qual-
ity of a map. Let f be a smooth mapping of a domain S ∈ Rn
and consider the following energy
Fig. 1: An energy density dist( f , x) of a spatial mapping f .
Z
E( f ) , ω(x) dist ( f , x)dx, (1)
S where the fitness of a mapping is measured with respect to an
energy density dist( f , x), called the distortion of f at x.
where ω(x) is a normalized cost function defined over domain
S, and dist( f , x) is the energy density at point x that depends A most common constraints for (2) considered in this work
on f and varies between different geometric problems. Min- is the fixation of f on a subset A ⊂ S, i.e., a spatial constraint
imizing E( f ) yields the highest quality mapping, and thus it
provides a preferable mapping between S and a given target f |A = g , (3)
domain T (see Fig. 1). Formally, we consider the following
where g : S 7→ T is a given continuous function.
fundamental problem:
We refer to Problem 1 as the optimal mapping problem. In
Problem 1. Let S and T be compact domains with non-empty practice we are more interested in approximated solutions than
interiors in Rn (n ≥ 2). Assume that S and T are homeomor- in global minimizers of (2), because the proposed problem is
phic, i.e., there is a 1:1 continuous map of one domain onto the too general to be solved under practical restrictions and con-
other, and let Def(S, T ) be a certain subset of smooth deforma- straints. We should, therefore, focus on a narrower class of den-
tion functions from S to T . Construct an optimal mapping sity functions dist(d f , x), which will be referred to as first order
Z distortion measures, where “first order” refers to the fact that
fopt = argmin ω(x) dist ( f , x) dx, (2) dist(d f , x) does not depend on the 2nd and higher order deriva-
f ∈Def(S ,T )
S
tives of the mapping. Despite these restrictions, the proposed
2 Preprint / CCIT Report (2017)

set of measures is capable of quantifying a very wide range most of these methods employ mathematical tools (e.g., com-
of geometric properties and it can be characterized using Ja- plex analysis) that cannot be extended beyond 2D. Therefore,
cobian singular values. For instance, various metrics of confor- we consider only related techniques that operate on volumetric
mal distortion (such as the aspect-ratio [AL13], n-D conformal domains or general studies that deal with arbitrary dimensions
distortion [LLL15], angle and volume energies [PP12], quasi- n ≥ 2. The relevant methods can be qualitatively divided into
conformal dilatation [NSZ15, NAY18] and least-square confor- the following groups:
mal energy [LPRM02]), isometric distortion [NSZ16, NAY17], Convexification methods (CM). These include projecting
ARAP [SA07] and Dirichlet energies [KABL14], all of which simplicial mappings on the space of bounded distortion maps
are expressed as functions of Jacobian singular values, and (BD and LBD) [AL13, KABL15] and controlling singular val-
therefore readily fit into our optimization routine. ues via semi-definite programming (SDP) [KABL14]. In gen-
Although our algorithms are implemented for triangular and eral, these techniques approximate problems similar to (2) by
tet meshes, the underlined technique can be directly extended a sequence of nested convex problems for which convex opti-
to general polyhedral meshes and to simplicial complexes em- mization tools can be applied. Similarly to our technique, CM
bedded in Rn . Therefore, we consider the following discrete methods express geometric energies as functions of the Jaco-
formulation of Problem 1: bian of a simplicial mapping. However, the use of convex opti-
argmin ∑ ω(v) dist ( f , v) , (4) mization tools imposes certain constraints on CM. These tech-
f :V →Rn v∈V niques are therefore not as generic as our approach. Notably,
our research deals with the general notation of the spatial defor-
where V is the vertex set of the source mesh that represents S,
mation that extends beyond R3 , while the CM techniques, op-
ω(v) is a vertex weight and dist( f , v) is an approximation of
erate only on a narrow finite subset of convex and quasi-convex
the continuous distortion, dist( f , x), in the vicinity of a vertex
measures. Moreover, in most cases CM methods deal only with
v. The spatial constrains defined by (3) are expressed in the
orientation-preserving maps and assume monotonicity with re-
discrete case as
spect to singular values, which restrict these technique to even
f (vi ) = fi for vi ∈ V, i = 1, ..., m. smaller subsets of geometric measures and deformations.
Harmonic mappings (HM). Minimization of 3D harmonic
Even for a simple distortion metric dist(d f , x), the exact so-
energy under a fixed boundary constraints yields to the discrete
lution of Problem 1 may give rise to a fundamental difficulty,
harmonic mappings [WGY∗ 03, LGW∗ 07]. These methods are
since in the general case there is very little known about prop-
employed in [CPS15] to minimize quasi-conformal errors for
erties of global minimizers, or even about their existence. For
volume deformations. The method of [BCWG09] considers lin-
example, choose a measure of the conformal distortion that as-
ear combinations of the harmonic basis functions that minimize
sesses how far is f from being conformal in a neighborhood of a
the rigidity energy. HM techniques produce smooth deforma-
point x. In this case, the global minimizers are closely related to
tions over a wide range of spatial domains. However, compared
the so-called extremal quasi-conformal mappings. To the best
with our approach, HM methods operate on a restricted space
of our knowledge, there does not exist a technique to charac-
of harmonic functions and consider a limited class of associated
terize, even qualitatively, the set of extremal quasi-conformal
geometric measures. Notably, our algorithm is capable of mini-
mappings for dimensions n ≥ 3. The latest research in this area
mizing a linear combination of various measures, including the
provides only a moderate lower bounds of conformal distortion
smoothness or Dirichlet energy which is closely related to HM.
for a basic source and target domains, such as convex polyhe-
drons, n-balls and wedges [Car74, J.71]. Therefore, our frame- Most-Isometric parametrization (MIPS). A classical
work is not intended to provide an exact solution for the optimal MIPS methods [FLG15, DMK03] for isometric energies are
mapping problem, instead we consider approximate solutions employed in parametrizations and deformations of triangu-
of (2). In particular, for a given mapping f : S → T we are lar meshes. These techniques are extended in [FLG15] to
looking for techniques that can iteratively refine the mapping tetrahedral domains using an indirect block coordinates ap-
till the process reaches an admissible degree of convergence. proach, where a steepest decent strategy is employed. How-
Our algorithm is based on a modified gradient descent that ever, [FLG15] consider optimizations and the related gradient
does not require any constraints on the optimized energies, ex- computations only for isometry-based energies. Hence, MIPS
cept the “first order" property and trivial geometric assump- techniques do not consider a general framework of generic dis-
tions. Compared with other techniques, our method is more tortion measures and their properties.
general and significantly simpler in the implementation, while Least squares projection. Least square fitting, used for con-
it is competitive in terms of the performance and accuracy. struction of 2D conformal mapping, is extended in [PP12] to
Particularly, for common boundary-to-boundary constraints we volumes. The method projects a volumetric mapping into xy, xz
achieve results that compare favorably to state-of-art methods. and yz planes of 3D space, and then approximates a simulta-
Moreover, unlike other more sophisticated techniques, our al- neous solution of Cauchy-Riemann equation [Ahl66, pp. 24-
gorithms can be naturally parallelized using simple mesh cuts. 25] for resultant projections. Since Cauchy-Riemann equation
characterizes 2D conformal functions, projections of resultant
1.1. Related work volumetric mappings to the coordinate planes approaches con-
There are plenty of techniques for construction of planar de- formality. The study of [BDS∗ 12] unifies major least squares
formations via minimization of geometric energies. However, geometry processing techniques into a framework of shape pro-
Preprint / CCIT Report (2017) 3

jection operators. Although shape operators can represent a va- Definition 2.1 is, in turn, an algebraic description of very
riety of geometric properties, the implementation of this method large set of geometric measures and it is particularity useful
requires separate algorithms for different geometric problems. for theoretical analysis of various problems. In practice, how-
In contrast, we present a single algorithm capable of minimiz- ever, dealing with smooth deformations and their discrete ap-
ing the full range of spatial distortions. proximations requires a more compact formulation of distor-
Proxy methods. Certain geometric energies can minimized tions. Notably, according to the following theorem, distortion
indirectly by optimizing simpler proxy measures such as ac- measures restricted to smooth deformations can be equivalently
celerated quadratic proxy (AQP) [KGL16] and weighted proxy characterized by the Jacobian singular values:
functions (WPF) [RPPSH17]. Although, these methods are
scalable to large datasets, they consider only certain classes of Theorem 2.1. A first order distortion measure, dist( f , x), can
distortion measure; e.g., WPF considers only isometric and cer- be expressed as a function of singular values of the Jacobian
tain conformal distortions, AQP assumes that the energies attain d fx , i.e.,
decompositions with convex second order terms.
∃ D : Un → R, dist( f , x) = D (σ1 (d fx ), ..., σn (d fx )) ,

2. Distortion measures where Un is the half space bellow the main diagonal of Rn ,
namely
Generally, we consider two function spaces for the continu-
ous Problem 1: locally injective continuous and locally injec- Un , {x ∈ Rn | x1 ≥ x2 ≥ . . . ≥ xn > 0} . (5)
tive smooth mappings between domains in Rn , shortly referred
to as deformation and smooth deformation functions, respec- [For proof see Appendix B.]
tively. [For formal mathematical definitions see Appendix A.] Restricting distortion measures to smooth deformations im-
Since continuous mappings are more general, we first define mediately implies the opposite version of Theorem 2.1.
a general concept of the distortion measures for deformation
Theorem 2.2. Let D : Un → R be a function. Then,
functions which are not necessary differentiable. The concept
is based on basic geometric assumptions that include: dist( f , x) = D (σ1 (d fx ), .., σn (d fx ))
• According to (1), distortions are densities of geometric en-
is a first order distortion measure for smooth deformations.
ergies, therefore they are local measures of a mapping.
Consequently, according to Theorems 2.1 and 2.2, we can
• If a mapping f is differentiable, then distortions of f are
uniquely identify each n-dimensional distortion dist( f , x) for
independent of its higher order partial derivatives.
smooth deformation f with a scalar function D : Un → R.
• Geometric energies are characterized by changes in intrin- We call the latter the canonical representation of a measure
sic geometry under a mapping. Therefore, distortions are dist(·, ·).
invariant to a particular choice of orthogonal coordinates.
2.1. Examples of distortion measures
We formalize the above observations as follows:
Definition 2.1. A quantity dist( f , x), for a deformation function high
f and a point x in its domain, is called a first order distortion
measure of f at x, or for short a distortion, if the following
conditions are satisfied:
1. First order precision: Assume that f , g are deformation
functions defined over a common domain S. If f (x) − low
g(x) = o (kx − x0 k) for x0 ∈ int(S), then Dirichlet ARAP V(f,x) K(f,x)

dist( f , x0 ) = dist(g, x0 ). Fig. 2: Distortion measures visualized for the bar deformation.

2. Invariance to compositions with rigid transformations: Following the definition, distortion values of a map f can
If f is a deformation function defined in S and T1 , T2 be intuitively interpreted as measures of f ’s rigidity. Rigid
are rigid coordinate transformations (i.e., compositions of transformations form the space of length-preserving (isomet-
translations and unitary linear operators), then for each ric) maps which, in turn, is the intersection of two sets contain-
y ∈ T1 (S) ing angle-preserving (conformal) and volume-preserving (equi-
volume) maps. Thus, distortions incorporate the following ma-
dist(T2 ◦ f ◦ T1−1 , y) = dist( f , T1−1 (y)). jor groups: length-wise measures, angle-wise measures and
measures based on assessments of local volumes. In view of
In other words, the position and orientation of coordinate the above observations, we recall the differential definitions of
frames (of both the domain and the image) have no impact isometric, conformal and volume-preserving mappings, formu-
on distortions measured at the respected points. lated for smooth deformations as follows:
4 Preprint / CCIT Report (2017)

• Condition number, also called linear dilatation


si
fc fc σ1
fsim (r ) r
fsim (r )
κ( f , x) , , (9)
r σn
vi f (vi)
vi f (vi) which is the ratio between the maximal and the mini-
mal singular values. Appears as a metric of conformal
Fig. 3: Simplicial mapping of a cell and the corresponding constructions. distortion in [AL13, KABL14] for dimensions n = 2, 3
(κ( f , x) = K( f , x) in 2D). This quantity is often employed
A smooth deformation f is a conformal mapping of a domain in numerical analysis and other disciplines outside the ge-
S ⊂ Rn if for each point x ∈ int(S) it scales the space uniformly ometry scope.
in every direction. This can be stated formally as
We now consider metrics of the isometric distortion which
kd fx · u1 k = kd fx · u2 k , (6) are direct measures of the rigidity. Since singular values of
an isometry equal 1, these distortions assess the deviation of
where d fx denotes the Jacobian matrix at a point x of function
(σ1 , ..., σn ) from the vector (1, ..., 1), most commonly, using the
f and u1 , u2 ∈ Rn are arbitrary unit vectors. Following this no-
following quantities:
tation, a conformal map f (x) is isometric in S if
∀x ∈ int(S) : | det d fx | = 1 , (7) • Quasi-isometric (qi) dilatation

where (7) alone defines a class of volume-preserving, or C( f , x) , max{σ1 , σ− 1


n }, (10)
equi-volume transformations.
While there is an abundance of conformal mappings in 2D, where σ1 and σn are, actually, local measures of the expan-
general higher dimensional domains can be mapped only quasi- sion and the contraction of the space, respectively. This
conformally, which means that condition (6) is satisfied only measure is used in both theoretical studies [Car74] and in
partially. In this case we say that the mapping produces con- practice [NSZ16, KABL15], where it is often normalized
formal distortion of the space. Applying the same terminology according to the relative sizes of the source and target do-
for isometries and equi-volume maps, yields the concepts of mains.
isometric and volume distortions, respectively. These quanti-
ties are local properties associated with a spatial deformation • Rigidity energy, also often called ARAP (as rigid as pos-
between given source and target regions. As shown by Theo- sible) energy, was initially introduced for 2D surfaces
rem 2.1, we can express distortions of Euclidean space under a [SA07] and its direct extension to Rn is defined by
mapping f as a simple function of singular values of Jacobian
n
σi = σi (d fx ) for i = 1, ..., n. EARAP ( f , x) = ∑ (σi − 1)2 . (11)
i=1
Since the equivalent condition for a smooth f to be conformal
is • Symmetric rigid energy, also called symmetric Dirichlet
σi = σ j , for 1 ≤ i, j ≤ n , energy (see the discussion in Appendix C) can be defined
in Rn by
conformal distortions are, in fact, estimates of the variation of
singular values and they are often measured by the following 1 n
∑ σi 2 + σi −2 .

quantities: ESD ( f , x) = (12)
2n i=1
• Quasi-conformal (qc) dilatation
Finally, if f is equi-volume in the vicinity of x, then
( )
σ1 · · · σn−1 σn1−1
K( f , x) , max , ,
σn n−1 σ2 · · · σn | det(d fx )| = σ1 σ2 · · · σn = 1 .
often defined as
Hence, for estimation of the volume distortion (area distortion
K( f , x) = max {KI ( f , x), KO ( f , x)} , (8) in 2D) we employ the following measure
where KI and KO are the so-called inner and outer qc- V ( f , x) , max | det(d fx )| , | det(d fx )|−1 ,

(13)
dilatations. These quantities can be visualized as volume
ratio between a small ellipsoid, obtained by mapping an where | det(d fx )| and | det(d fx )|−1 can be considered as assess-
infinitesimal sphere under f , and its inscribed and circum- ment of the dilatation and compression of a local volume, re-
scribed balls. spectively.
Quasi-conformal dilatations are often employed in math- Another measure widely used in applied geometry is Dirich-
ematical analysis of qc-mappings; notably they are useful let energy. This energy, also referred to as the smoothness en-
in estimations of geometry-dependent bounds of confor- ergy, is traditionally employed in construction of harmonic sur-
mal distortions. face parametrization. Few approaches extend it to volumetric
Preprint / CCIT Report (2017) 5

• In 2D: Let µi be the edge of a triangle c against vi , and si


be a vector along the outwards facing normal of µi , such
f
v f (v ) y y that ksi k = length(µi ).
• In 3D: Let µi be the face of tetrahedron c against vi , and
Ring(v) Ring  f (v)  
Img f v y  si be a vector along the outwards facing normal of µi such
that ksi k = area(µi ).
Fig. 4: Construction of the mapping fv7→y defined according to (24) in the ring
of the neighboring vertices of v (a 2D case is illustrated). Then, for n = 2, 3 the value of a simplicial map at r ∈ c is
n+1
(i) 1
domains [WGY∗ 03, LGW∗ 07]. We suggest the following di-
fc (r) = ∑ (vn+1 − r) · s j f (i) (v j ) ,
n volume(c) j=1
(17)
rect extension of the Dirichlet energy density to n-dimensions:
and rows of the Jacobian d fc are gradients
1 n
EDirichlet ( f , x) = ∑ σi 2 . (14) n+1
n i=1 (i) −1
∇ fc = ∑ s j f (i) (v j ), i = 1, ..., n .
n volume(c) j=1
(18)
Obviously, the above quantities are formulated for the n-
dimensional case, where in dealing with actual planar and vol- This scheme for Jacobian computation can be obtained equiva-
umetric distortions we take n = 3 and n = 2, respectively. The lently by solving linear systems (15) and (16), or by computing
above distortion metrics are visualized in Fig. 2 using a simple gradients of the, so called, hat functions that constitute the basis
example of deforming rectangular bar in 3D. of the simplicial mapping space.
Note that minimizing different metrics of the same distortion Finally, choose a distortion measure and express it as a func-
may lead to distinct results as illustrated in Fig. 10 for C( f , x) tion D of the Jacobian singular values. Then, in the cell c the
and EARAP ( f , x) measures. Although both measures represent distortion has a constant value
isometric distortion, C( f , x) depends only on σ1 and σn , while
ARAP energy is a function of all singular values, and thus it dist( fc ) = D (σ1 (d fc ), . . . , σn (d fc )) . (19)
considers n independent directions of the space.
The distortion at v ∈ V can be therefore estimated by the
weighted average
2.2. Simplicial mappings
First, we consider a discrete representation of a n- dist( fsim , v) = ∑ w(c, v) dist( fc ) , (20)
w
dimensional deformation f : S → T , denoted by f =
 c∈Cell(v)

f (1) , ..., f (n) . We represent the source domain as a simpli- where Cell(v) is a set of the neighboring cells sharing v
cial mesh (V, C), where V is the set of vertices and C is a set of and w(c, v) are positive weights. The most widely employed
oriented simplices, called cells, that constitute a triangulation weights are the uniform w(c, v) ≡ 1, volume weights w(c, v) =
of S. We use general formulations for dimension n ≥ 2, where volume(c) and the average volume weights:
a cell is a n-simplex which in geometric terms is a convex hull
−1
of n + 1 vertices in Rn . w(c, v) = |Cell(v)| volume(c) . (21)
We approximate f on a cell c = (v1 , v2 , ..., vn+1 ) by the affine
function fc that satisfies fc (vi ) = f (vi ) for each i. Then, a piece- The above numeric scheme for planar deformations can be
wise affine function employed directly for simplicial maps between 3D triangular
[ meshes (i.e., triangular meshes embedded in R3 ). The only dif-
fsim : c → Rn , fsim (x) = fc (x) for x ∈ c , ference that should be considered in (17) is that on surfaces si
c∈C are defined on a general plane containing a 3D triangle c. In this
case σ3 (d fc ) = 0, and therefore we set dist( fc ) = D(σ1 , σ2 ),
is called a simplicial map. It can be obtained in cell c as a linear where D is a given 2D distortion metric.
blending of the samples f (v1 ), ..., f (vn+1 ) as follows: if r is a
point inside c, then
3. Minimizing distortion measures
fsim (r) = λ1 f (v1 ) + λ2 f (v2 ) + ... + λn+1 f (vn+1 ) , (15)
We look for simplicial mappings that approximate solutions
where λ1 , .., λn+1 are barycentric coordinates of r, i.e., of (2). Let us reexamine (4) by employing the notion of simpli-
cial map f of a mesh (V, C), the concept of distortion measure
n+1 n+1 dist( f , x) and its estimates on vertices defined by (20). Then,
∑ λi = 1 and ∑ λi vi = r . (16) the discrete energy involved in (4) can be rewritten as follows:
j=1 j=1
E( f ) = ∑ ω(v)dist ( f , v) (22)
Practically we are interested in 2D and 3D cases, where C is a v∈V
w
set of triangles and tetrahedrons, respectively. In these dimen-
= ∑ w(c) dist( fc ) , (23)
sions we use the following constructions (Fig. 3) c∈C
6 Preprint / CCIT Report (2017)

Algorithm 1: Minimization of a spatial distortion measure the problem; i.e., we optimize at each step vertex v ∈ V \ Vfix
Input: that achieves the maximal distortion

• Source mesh (V, C) and set of fixed vertices Vfix . max ω(v)dist( f , v) .
v∈V\Vfix w
• Initial simplicial map f0 .
• Distortion measure dist( f , x) for the minimization. Then, we fix the position of f (v) to the attained solution of (24)
and continue to the next ring, until f is fixed on all vertices.
• Cell and vertex weights: ω(v) and w(c, v).
Our implementation supports gradient descent and BFGS
• Maximal number of iterations N and convergence [WN99] methods for solving (24). Both methods achieve very
threshold ε. similar numerical results, while BFGS is more computation-
ally expensive. The procedure for gradient descent is presented
1. dist( f−1 ) ← ∞. in Algorithm 2, where the notion ∇ dist( f , v, y)|y= f (v) refers to
2. i ← 0. the gradient of the function dist( fv7→y , v) computed at y = f (v).
The whole procedure is repeated by Algorithm 1 till the en-
3. W (c) ← ∑ ω(v)w(c, v) for each c ∈ C.
v∈c ergy E( fi ) converges or till the maximal number of iterations is
4. dist( f0 ) ← Σ W (c) dist (( f0 )c ). reached. Eventually, the output of the whole process is a sim-
c∈C plicial map fN that depends on the following input parameters:
initial simplicial map f0 of the mesh (V, C); canonical represen-
while i ≤ N and dist( fi−1 ) − dist( fi ) > ε do tation of distortion measures D(σ1 , ..., σn ); spatial constraints
fi+1 ← GreedyGradDescent (V, Vfix , C, dist, fi , ω, w) ; expressed by the set of the fixed vertices Vfix ; vertex weights
dist( fi+1 ) ← Σ W (c) dist( fi+1 , c) ; ω : V → (0, ∞) indicating the “distortion costs” over the tar-
c∈C
i ← i+1 ; get domain and the cell weight w(c, v) used in the estimation of
distortions on vertices.
Output: Simplicial map fi obtained at the last iteration Further, we present a number of applications based on Al-
gorithm 1 that include: deformation of meshes, mesh gener-
ation, improving volumetric parametrization and mapping sur-
where, according to (20), we set1 faces with complex topology structures. The quantitative results
of our applications are depicted using average distortion values,
w(c) , ∑ ω(v)w(c, v) . namely a total distortion energy (23) divided by the volume of a
v∈c
source domain. To avoid a long list of parameters employed for
Eventually, the optimal mapping problem is reduced to min- each result, we assume uniform vertex weights (i.e, ω(v) ≡ 1),
imizing E( f ), equivalently defined by (23) and (22), under the average volume cell weights (see (21)) and the use of the gradi-
constraints ent descent solver (Algorithm 2), unless stated otherwise.
f (Vfix ) = f0 (Vfix ) , The complexity of each iteration of Algorithm 1 is n log(n)
where Vfix ⊂ V is the set of vertices where f is fixed and f0 is a with respect to the number of vertices, and the total number of
given initial deformation. iterations depends on geometric complexity. For instance, as
To resolve the problem, we consider a local approach based illustrated in Fig. 5, if initial map f0 is nearly injective, then the
on the fact that a displacement of a vertex v inside the hull of its optimization process converges after a few iterations. However,
neighboring cells does not affect values of dist( f , u) if u does as seen in Fig. 9, the presence of self intersections between cells
not share a common cell with v. Denote by Ring(v) the set of slows down the process in 3D. Note, that according to Fig.7 this
the neighboring vertices of v, called the ring of v, and denote impact on the performance is not significant in 2D.
by Ring(v) the hull of the ring, namely Since SVD of 3 × 3 matrices cannot be expressed analyti-
[ cally, the general implementation of Algorithm 2 computes dis-
Ring(v) = c. tortion gradients numerically using the Forward-Backward Eu-
c∈Cell(v) ler scheme.
Fig. 6 illustrates the process of minimizing conformal distor-
Then, we solve the following formal problem for a vertex v tion without constraints (i.e, Vfix = ∅) in 2D and in 3D. Appar-
ently, the resultant process is a conformal flow of Im( f0 ),i.e., a
argmin dist( fv7→y , v), (24)
y∈Ring( f (v))
w movement of vertices toward the image of the nearest confor-
mal map. We chose a simple case, where source domains are
where fv7→y denotes the simplicial map obtained by restricting a square and a cube, and initial deformations are shear trans-
f to fixed values on Ring(v) and setting fv7→y (v) = y (see Fig. formations. As Fig. 6 illustrates, our algorithm in 3D leads
4). Our aim is to minimize E( f ) locally by solving (24) for to a rotation and a slight uniform scaling of the input cube,
each v ∈ V \ Vfix . Practically, we prefer a greedy approach to wheres in 2D the input square is deformed into a different
shape. These results emphasizes the fundamental difference be-
tween the plane, where any pair of simply-contained domains
1 Taking w(c) = volume(c) leads to a natural discretization of (1). can be mapped conformaly onto each other, and higher dimen-
Preprint / CCIT Report (2017) 7

Fig. 5: Minimizing distortions under fixed boundary constraints. The Initial deformation f0 is shown on top left. First two rows illustrate result of Algorithm 1
for different distortion measures, including comparison between GD (gradient descent) and BFGS methods for iterations 1-3. Arrows point from the image of f0
to the image of the optimal deformation obtained after 6 iterations. Cross sections are colored according to distortions per tetrahedron. The third row shows the
comparison of our algorithm with related methods. Note that AQP [KGL16] method was employed indirectly via minimization of isometric distortion and that LBD
method [KABL15] failed to reduce condition number while preserving the boundary constraints.

sions, where conformal mapping are restricted to the limited set other vertices. Each iteration in Algorithm 3 first optimizes
of Möbious transformations. (V∂ , C∂ ) mesh that covers common vertices. Then, V∂ are fixed
and problems of (25) are solved in parallel via Algorithm 2
3.1. Parallelization (for short we dropped some input parameters of Algorithm 2,
including cell and vertex weights). In order to use efficiently
One of major advantages of our local approach is that Algo-
available resources for parallel computations it is necessary to
rithm 1 can be naturally parallelized by dividing source domain
satisfy |V∂ | = o(max |Vi |). If this criterion is not met, then, opti-
into sub regions. Let denote by a 4-tuple P = ( f0 , V, C, Vfix ) a
mization of (V∂ , C∂ ) can be run in parallel via the recursive call
problem of minimizing dist( f , x) on a mesh (V, C) under fixed
of Algorithm 3. Note, that mapping update steps in Algorithm
vertices Vfix and inital map f0 . The problem can be processed
3 are not necessary if the mesh slice dataset is shared between
in parallel as series of sub-problems:
multiple threads.
Pi = ( f0,i , Vi , Ci , Vfix ∩ Vi ) , i = 1, ..., k, (25) Tests of Algorithm 3 were carried out using a spatial parti-
tion of the source domain with varying resolution and number
where (Vi , Ci ) are sub-meshes with disjoint cells that constitute of sub-meshes (k). The results are shown in Table 1 for 10−4
a partition of (V, C) and f0,i denotes the restriction of f0 to Vi . convergence threshold. For high resolution models the best re-
The parallel optimization is valid as long as the simplicial map- sults we achieved with k equals the number of available CPU
pings for each Pi coincide on their common vertices Vcom (these cores. However, in low-to-middle resolution models, taking k
that belong to at least two sub-meshes). as a half core number attains the best results due to the multi-
Our approach, presented in Algorithm 3, ensures the valid- thread initialization cost and un-parallel optimization of Vcom
ity by switching sequentially between optimization of Vcom and vertices. According to the results, even the single-thread Algo-
8 Preprint / CCIT Report (2017)

Algorithm 2:
GreedyGradDescent(V, V0 , C, dist, f0 , ω, w)
Input:
• Source mesh (V, C) and set of fixed vertices V0 .
• Initial simplicial map f0 .
• Distortion dist( f , x) in the canonical representation.
• Vertex weights ω(v) and cell weights w(c, v).

1. V f ix ← V0 .
2. f ← f0 .

while V r V f ix 6= ∅ do
vmax ← argmax ω(v)dist( f , v);
v∈V rV f ix w

repeat
∇ ← ∇ dist( f , vmax , y) ;
w y= f (v)
Using line search choose ∆t such that
( f (vmax ) − ∆t∇) ∈ Ring ( f (vmax )) ;
Refine f at vmax : f (vmax ) ← f (vmax ) − ∆t∇;
until Convergence of dist( f , vmax );
V f ix ← V f ix ∪ {vmax } ;
Output: Simplicial map f obtained by optimizing f0 .
Fig. 6: Unconstrained minimization of conformal distortion K( f , x) in 2D (top)
and in 3D (bottom). Each plot depicts average conformal distortion per itera-
tion. Initial shear mapping of square and cube are shown above plots, and im-
ages of deformations fi for chosen iterations are depicted bellow. The images non-symmetric measures are often substituted by their symmet-
are colored according to conformal distortion per mesh cell. ric analogues, e.g., symmetric Dirichlet energy (12).
Using mathematical tools presented in Appendix A and Ap-
pendix B, the above distortion properties are generalized for en-
rithm 1 achieves superior performance compared with related tire space of deformation functions (see Definition C.1). More-
methods which do not support parallel computing. over, according to (C.2) and Corollary C.1, RDM measures
approach infinity when an optimized vertex in Algorithm 2
3.2. Stability and injectivity crosses its 1-ring. Therefore, high values of the gradient point-
ing outward near ring boundaries avoid singularities, self in-
The gradient descent allows minimization of arbitrary dis- tersections and flips of cells. Consequently, if we consider
tortions. However, to ensure stability and injectivity one should only RDM, then Algorithm 1 preserves orientation and local
consider a certain subset of measures, referred to as regular dis- injectivity of f0 . This restriction has only limited impact on
tortion measures (RDM). the algorithm applicability, since most non-RDM measures em-
Suppose that we deal only with smooth bijective maps. Then, ployed in the practice have “geometrically equivalent” RDM
dist( f , x) is normalized if it is minimal when f is rigid in a analogues. E.g., (14) and (11) can be substituted by (12) and
neighborhood of a domain point x and the distortion is infinite (10), respectively.
if d fx is singular or infinite, except when all singular values Furthermore, according to (C.7) and (C.8) the gradient de-
approach 0 or ∞ simultaneously (it may occur, for example, scent for RDMs is well defined even if a metric D has non-
under a conformal inversion on a sphere). We call dist( f , x) differentiable points and the process is stable for arbitrary con-
smooth if it is a smooth function with respect to variations in straints. Most importantly, according to [AL13], positively ori-
f and x. We call it symmetric, if dist( f , x) is symmetric with ented simplicial maps are globally injective if they are injec-
respect to inversion of f , i.e., dist( f , x) = dist( f −1 , f (x)). A tive on the boundary. Hence, in the RDM case, a sufficient
distortion is considered to be RDM if all three conditions of condition for global injectivity are the positivity of an initial
normalization, smoothness and symmetry are satisfied. deformation and injectivity on the boundary ∂S. If f0 is pos-
Normalized distortions follow a general expectation about itive, then the second condition is obviously fulfilled for fixed
the effects of "week" and "strong" space deformations, while boundary constraints. For more general constraints, we employ
symmetric distortions equally penalize on scaling and shrink- a basic voxel traversing algorithm to find intersections between
ing, and thus are more stable during optimization. Minimiz- boundary faces during the line search stage of Algorithm 2. The
ing non-symmetric measures may lead to undesirable shrinking length of a line search segment for unfixed boundary vertices is
and scaling if the boundary is not properly fixed. Consequently, reduced if it intersects ∂S. Moreover, if Vi = ∂V is incorpo-
Preprint / CCIT Report (2017) 9

Algorithm 3: ParallelGradDescent (V, Vfix , C, f0 ) iterations is around 0.01, and therefore can be neglected). As
emphasized in Fig. 7 the image of optimal deformation con-
Input:
sists of almost regular triangles, meaning a high quality of the
• Source mesh (V, C), fixed vertices Vfix and initial map f0 . output mapping.
• Mesh partition {(Vi , Ci )}ki=1 with initial maps { f0,i }ki=1 . Note that fixed boundary constrains in the plane left no free-
dom for interior triangles to be resized during the optimization;
1. Vcom ← vertices that belong to at least two sub-meshes. hence output mappings for both conformal, and area (V ( f , x))
distortions appear almost visually indistinguishable from each
2. C∂ ← cells that share Vcom vertices
other.
3. V∂ ← vertices of C∂ As shown in Fig. 7,our algorithm achieves better results than
4. f0,∂ ← f0 restricted to mesh (V∂ , C∂ ) AQP for both isometric and conformal minimizations and sim-
ilar results compared with LBD and SPD methods for confor-
5. j ← 0 mal minimization, whereas BD method failed in both cases to
reduce distortions bellow their initial values.
repeat  Next, we experiment with minimizing distortions on sur-
f j+1,∂ ← Minimize f j,∂ , V∂ , C∂ , Vfix ∪ (V∂ /Vcom ) ;
faces. As shown in Fig. 8, we use our algorithm to improve
for i=1,...,k in parallel do harmonic disc parametrization for non-regular meshes, where
Set f j,i to be equal to f j,∂ on Vcom ; classical cotangent weighted harmonic maps produce artifacts.
f j+1,i ←Minimize( f j,i , Vi , Ci , (Vfix ∪ Vcom ) Vi );
T
By randomly displacing target vertices of the face model we
Update f j+1,∂ on V∂ /Vcom . intensify initial distortions to extreme values (up to 1018 ). Nev-
j ← j+1 ertheless, as depicted in Fig. 8, our algorithm attains almost
k perfect parameterization after 20 iterations.
until Convergence of ∑ dist( f j,i );
i=1 Finally, we test our method for deformations of volumetric
models. As illustrated in Fig. 9, taking the result of [AL13]
6. f j ← simplicial map of (V, C) obtained from f j,1 , ..., f j,k . method as the initial deformation and then applying our algo-
rithm significantly reduces conformal distortion. Fig. 5 depicts
Output: Mapping f j that minimizes a given distortion. series of distortion minimizations for the initial radial mapping
f0 (x) = xkxk of a cube under fixed boundary constraints along
with the plot of distortion values per each iteration of the al-
rated into the mesh partition, then the above procedure can be gorithm. We used this example to compare our results of con-
integrated efficiently into parallel Algorithm 3. structing volumetric extremal qc-maps (i.e., deformation that
On the other hand, the above property of RDMs prevents the minimizes conformal distortion) with state-of-the-art methods.
gradient descent from repairing self intersections between cells We used the condition number defined in (9) as a metric of
if the initial map is not locally injective. In these cases a combi- conformal distortion for the comparison, since except our work
nation of the given distortion and other non-RDM penalty mea- there is no method for minimizing more complicated metrics
sures can be employed to repair self intersections and flips. An like K( f , x) in 3D. As demonstrated by the figure, our method
other approach to handling bad initializations is to perform al- produced results that are favorable both visually and numeri-
ternating optimization of RDM and non-RDM measures. cally. Furthermore, the technique can be particularly useful in
modeling of surfaces and volumetric objects. Compared with
4. Applications related works, it applies to a wider set of geometric energies.
As summarized in Fig. 10, employing different weights ω(v)
4.1. Deformation of triangle and tetrahedral meshes and distortion measures along with their combinations leads to
We first experiment with deformation of planar meshes. Fig. a rich variety of resultant shapes and volumetric structures.
7 demonstrates optimal deformations of an elephant model by
applying Algorithm 1 with respect to various distortion mea- 4.2. Triangular and tetrahedral meshing
sures under fixed boundary constraints. Given the source mesh By studding Figs. 5 and 7, our conclusion is that if a source
with m vertices, the initial deformation f0 is computed as mesh is regular and a distortions dist( f0 , v) for boundary
follows: using [CWKBC13] method we construct boundary- vertices are low, then minimizing distortions under fixed
to-boundary mapping and then produce the target mesh with boundary constraints produces a nearly regular target mesh.
m vertices by triangulating the domain contained inside the To emphasize this observation, we compare resultant target
boundary; the map f0 is defined by a coarse correspondence meshes of a radial shape from Fig. 5 and a similar shape in
between the source and target interior vertices. We also distort 2D with state of the art methods of tetrahedral and triangular
shapes of target triangles in Im( f0 ) by adding a few iterations meshing, respectively. The results are shown in Fig. 13, were
of a noise to positions of the interior vertices. As illustrated by each pair of meshes contains nearly the same number of cells.
Fig. 7 after few iterations of our algorithm we obtained global We employed edge aspect ratio per vertex and the average
minimizers in all three cases, i.e., an area-preserving, isometric tetrahedron aspect ratio as measures of the mesh quality. As
and conformal mappings, respectively (The deviation of aver- shown by the figure our approach, based on ether isometric or
age distortions in Fig. 7 from their minimal value 1 after 5 conformal distortion minimizations, achieves favorable results.
10 Preprint / CCIT Report (2017)

Fig. 7: Minimizing distortions for planar meshes under fixed boundary constraints. The source mesh, the initial map f0 and the resulting deformations after 5
iterations of Algorithm 1 are shown from left to right. Colors depict distortions per vertex. Average distortion values per iteration are shown for our algorithm and
for related methods.

4.3. Volumetric textures for surface mapping plied for S, resulting in a low distortion deformation of the sur-
Our method for optimizing tetrahedral domains can be em- face into a desirable shape. Moreover, the runtime and accu-
ployed on surfaces via a deformation of the enclosing volumes. racy of this procedure depend entirely on resolutions of S and
This approach is highly advantageous on surfaces with complex (V, C). Thus, its performance is independent of the geomet-
topology, such as gyroid surfaces shown in Fig. 11. Gyroid- ric complexity. The first application illustrated in Fig. 11 is
based structures have a great importance in 3D printing and the mapping of cubic gyroid into a spherical shape induced by
material engineering applications (e.g., 3D graphene assembly minimizing isometric distortion of the bounding volume. We
[QJKB17]), but due to the high genus these surfaces cannot be use method [NSZ16] of star-shaped domain parametrization to
mapped by standard techniques for triangle meshes. Even ad- construct the initial map. The second application illustrates a
vance algorithms for n-genus manifolds are not efficient in this similar process of mapping volumetric structure from a cube
example. to a head model. We employ in this process an inverse mass
However, consider the following procedure: construct a tet transportation [GLSY13] as the initial deformation.
mesh (V, C) that contains the triangulated surface S and repre-
sent surface vertices by their barycentric coordinates (16) with Furthermore, as illustrated in Figs. 11 and 12 our algorithm
respect to their parent tetrahedrons. In other words, a surface can be used for improving existing surface and volumetric
is represented as a volumetric texture. Then, a simplicial map parametrization techniques, including basic methods that do
of (V, C) constructed by our algorithm, can be effectively ap- not require heavy computations.
Preprint / CCIT Report (2017) 11

Fig. 8: Improving surface parametrizations via minimizing the product K( f , x)C( f , x) and the conformal distortion K( f , x) for the face and hand models, respectively
(see (8) and (10)). The boundary is fixed to its initial position only for the hand model.

3 distortion 2

Conformal dist.
(BD) distortion (Our)

1 1
4
0 4

Fig. 9: Tet meshes of (from left to right) source domain, cross section of the image of the deformation obtained by BD method; cross section of the image of the
deformation obtained by our algorithm, where the BD result is taken as the initial mapping. Optimizations were performed with fixed boundary constraints.

4.4. Implementation and performance


We have written our algorithm interface in MATLAB, while
critical parts of the code were implemented in C++.
Table 1 summarizes the performance of our algorithms in
comparison with related approaches. The behavior of related
geometry optimization methods indicates that there exists a
trade-off between geometric precision and the runtime. For ex-
ample, according to Fig. 5 the closest result to our algorithm
Fig. 12: Parametrization to a ball from Fig. 11: method of [NSZ16] (left) and
was achieved by [KABL14] method that suffers from a slow parametrization improved by Algorithm 1 (right).
performance of SDP solvers.
Since significant part of our C++ code were automatically
translated from MATLAB, we expect that a manual implemen-
tation of the entire algorithm in C/C++ will lead to much faster
performance.
12 Preprint / CCIT Report (2017)

Uniformal W3
weight
min max

K+C+2V

EDirichlet

EARAP

distortion
min max
Fig. 10: Deformations of the volumetric bar (top) obtained via minimization of various distortion measures (shown per row) under constrained positions of bar’s
left and right edges. Columns correspond to different vertex weights: uniform, weights concentrated near the edges and weights concentrated at the middle.
Preprint / CCIT Report (2017) 13

Fig. 11: Mapping of topologically complex gyroid surface (left) and generating a volumetric structure (right), using optimal deformations of the bounding volumes.
Volumetric deformation for gyroid surface was obtained by minimizing isometric distortion under fixed “boundary-to-boundary” constraints for a parametrization
of a bounding cube to a ball (left top). Similarly, volumetric deformation of a cube to the head model was obtained via minimization of conformal distortion for
inverse mass transportation of tetrahedral mesh to a cube (right top).

5. Conclusion Table 1: Conformal optimization for meshes of 0.8K (shown in Fig.5), 6K and
50K tets. Runtime measures for Intel i5-5590 (4 Cores) are shown in seconds
for Algorithm 1 (1 thread) and for Algorithm 3 for parallel processing of 2
We have presented a framework for mapping and deform- and 4 segments. Note, that comparison with BD is unfair, since its numerical
ing discrete geometric data based on minimization of distortion results are much worse than ours. Our algorithm achieves the same results for
measures. Our algorithm is easy to reproduce for a parallel run, 6K mesh after a one second. We did not compare runtime with AQP and LBD,
and its implementation does not require external optimization since these methods failed to reduce distortions below the initial level.
tools like SDP and large scale linear solvers employed in re-
lated methods. We have shown that our technique can outper- Method Tet mesh 1 thread 2 threads 4 threads
form existing algorithms in terms of runtime performance and 0.8K 0.2 0.2 0.7
geometric accuracy. Moreover, our algorithm can be further im- 6K 11.2 6.5 7.4
Our
proved in a straightforward manner by employing analytic gra-
dient approximations and by optimizing parallel computations 50K 107 59.6 49.4
as discussed in Section 3.1. 0.8K 4.8
Despite the relative simplicity of our approach, the underly- 6K 11.5
BD
ing steepest descent techniques were not analyzed properly in
the previous studies presented in the literature. Our work closes 50K 120
the gap trough a formal analysis of deformations and funda- 0.8K 33.7
mental geometric measures involved in the optimization. Our SDP 6K 328
approach is very general and can be extended to higher dimen-
sions and by employing local coordinates to manifolds. 50K 2235
We employed our method so far in a collection of geometry
processing problems. We expect to find more applications in
related fields, including medical imaging and computer vision. Acknowledgment
In particular, we expect that computing distortions of optimal
Research has been supported in part by the office of the Is-
deformations between 3D objects can be applied in change de-
raeli Chief Scientist–OMEK Consortium and by the Ollendorff
tections and geometric similarity assessments.
Minerva Center for Vision and Image Sciences.
14 Preprint / CCIT Report (2017)

Based on above definitions and Lemma 1, Theorem 2.1 can


be formally stated and proven as follows:
Theorem B.1. For f ∈ Def(Rn ), x ∈ Dom( f ), a first order dis-
tortion measure, dist( f , x), can be expressed as a function of
singular values of the Jacobian d fx , i.e.,
∃ D : Un → R, dist( f , x) = D (σ1 (d fx ), ..., σn (d fx )) ,
where Un is defined by (5) .
Proof. First, let us show that dist( f , x0 ) = D(d fx0 ), that is,
dist( f , x0 ) is a function of the entries of the Jacobian matrix at
x0 . Since distortion measures are invariant to compositions with
rigid transformations, we assume w.l.o.g. that x0 = f (x0 ) = 0.
Let N0 be a local neighborhood of f at 0 and consider the linear
function g(x) = d f0 x for x ∈ N0 . Next, since f is diffeomor-
phism in N0 it can be linearly approximated by the first term
of its Taylor series; hence f (x) − g(x) = o (kxk). Therefore,
according to the 1st order precision property

Fig. 13: Meshes produced via minimizing distortions by Algorithm 1 (left) and
dist( f , 0) = dist (d f0 (·), 0) ,
state-of-the-art algorithms “tetgen” [Si09] and “mesh2D” [Eng09] applied for
where d f0 (·) denotes the linear function x 7→ d f0 · x. Conse-
obtaining tet and triangle meshes, respectively. The table contains average cell
aspect ratios and colors are according to edge aspects. quently, dist( f , 0) is a function of the entries of Jacobian d f0 .
Finally, let d f0 = UΣV T be SVD of the Jacobian. Then, the
second property of Definition 2.1 applied for rigid transforma-
Appendix A. Formal definitions tions T1 = V, T2 = U T yields
Deformation functions and smooth deformations considered dist (d f0 (·), 0) = dist (Σ(·), 0) ,
in Section 3 are formally defined as follows:
where Σ is a diagonal matrix diag (σ1 (d f0 ), ..., σn (d f0 )) and the
Definition A.1. Let S be a proper domain of Rn , namely, singular values (σ1 (d f0 ), ..., σn (d f0 )), put in the descending or-
S ⊂ Rn is a compact set with a non-empty interior. Then, a con- der, constitute, according to Lemma 1, an element of Un .
tinuous function f : S → Rn is called a local diffeomorphism (or
smooth deformation) if for each x ∈ int(S) there is a neighbor-
hood, called a local neighborhood of f at x, where f is a smooth Appendix C. Regular distortion measures
bijective mapping with a smooth inverse.
Similarly, a continuous function f is called a local homeo- Definition C.1. Let dist(·, ·) be distortion measure and let D be
morphism (or a deformation) if for each x ∈ int(S) there is a lo- its canonical representation. We call dist(·, ·) a a regular distor-
cal neighborhood Nx such that f |Nx is a homeomorphism, i.e., tion measure (RDM) if the following properties are satisfied:
f |Nx is continuous bijective mapping. 1. Normalization. Distortion measure dist( f , x) is called
We denote by Hom(Rn ) and Def(Rn ) the set of deformation normalized if dist( f , x) ∈ [m, ∞) for any f ∈ Def(Rn ) ,
functions and the set of smooth deformation functions of proper x ∈ Dom( f ) and the following conditions are met:
domains in Rn , respectively. The interior of a proper domain of
a function f ∈ Hom(Rn ) will be denoted by Dom( f ). dist(IdD , x) ≡ m , ∀x ∈ int(D) , (C.1)
Following the above notations, distortion measures are for- D(σ1 , . . . , σn ) → ∞ when σn → 0 and σ1 > ε > 0;
mally defined as functions (C.2)
where IdD denotes the identity function of a proper domain
dist : { ( f , x)| f ∈ Hom(Rn ), x ∈ Dom( f )} → R ,
D. Usually, minimal distortion values are m = 0 or m = 1.
and the first order precision property of Definition 2.1 is for- 2. Symmetry. We call f † a local inversion of deformation f ,
malized as follows: Assume that f , g ∈ Hom(Rn ) coincide if for each x ∈ Dom( f ) there are local neighborhoods X of
on x0 and have a common local neighborhood N of x0 . If −1
f at x, and Y of f † at y = f (x), s.t., ( f |X ) = f † |Y . If for
f (x) − g(x) = o (kx − x0 k) in N, then dist( f , x0 ) = dist(g, x0 ). n
any f ∈ Def(R )

Appendix B. Canonical representations of distortions dist( f , x) = dist f † , f (x) , ∀x ∈ Dom( f ) ,



(C.3)
Lemma 1. The Jacobian of f ∈ Def(Rn )
is a full rank matrix, then dist(·, ·) is called symmetric. In other words, sym-
and it therefore contains only positive singular values, denoted metric distortions do not distinguish between mapping a
in the descending order by σ1 (d fx ), ..., σn (d fx ), where d fx is source into a target domain and the vice versa deforma-
the Jacobian matrix of f at x. tion.
Preprint / CCIT Report (2017) 15

3. Smoothness: A distortion measure dist( f , x) is called [CPS15] C HERN A., P INKALL U., S CHRÖDER P.: Close-to-conformal
smooth if D is a smooth function a.e. (almost everywhere). deformations of volumes. ACM Transactions on Graphics
(TOG) 34, 4 (2015), 56.
Corollary C.1. Immediate consequences of Definition C.1 are: [CWKBC13] C HEN R., W EBER O., K EREN D., B EN -C HEN M.: Planar
shape interpolation with bounded distortion. ACM Transactions
on Graphics (TOG) 32, 4 (2013), 108.
1. Each of the following properties is equivalent to (C.1):
[DMK03] D EGENER P., M ESETH J., K LEIN R.: An adaptable surface
parameterization method. IMR 3 (2003), 201–213.
D(1, 1, ..., 1) = m, (C.4) [Eng09] E NGWIRDA D.: Mesh2d-automatic mesh generation. URL:
http://www. mathworks. com/matlabcentral/fileexchange/25555-
∀T -rigid : dist(T, x) ≡ m . (C.5) mesh2d-automatic-mesh-generation (2009).
[FLG15] F U X.-M., L IU Y., G UO B.: Computing locally injective map-
pings by advanced mips. ACM Transactions on Graphics (TOG)
2. The symmetry is equivalent to 34, 4 (2015), 71.
  [GLSY13] G U X., L UO F., S UN J., YAU S.-T.: Variational principles for
1 1
D(σ1 , . . . , σn ) = D ,..., ∀σ ∈ Un . (C.6) minkowski type problems, discrete optimal transport, and dis-
σn σ1 crete monge-ampere equations. arXiv preprint arXiv:1302.5472
(2013).
[J.71] J. V.: Lectures on n-Dimensional Quasiconformal Mappings.
3. If dist(·, ·) is symmetric, then (C.2) implies Springer-Verlag Berlin Heidelberg New York, 1971.
[KABL14] KOVALSKY S. Z., A IGERMAN N., BASRI R., L IPMAN Y.:
D(σ1 , . . . , σn ) → ∞ when σ1 → ∞ and σn < N < ∞. Controlling singular values with semidefinite programming.
(C.7) ACM Transactions on Graphics (TOG) 33, 4 (2014), 68.
[KABL15] KOVALSKY S. Z., A IGERMAN N., BASRI R., L IPMAN Y.:
Proof. According to Definition 2.1 and Theorem B.1, (C.1) im- Large-scale bounded distortion mappings. ACM Trans. Graph
34, 6 (2015), 191.
plies dist(T, x) = dist(T −1 ◦ T, x) = D(1, ..., 1) = m. [KGL16] KOVALSKY S. Z., G ALUN M., L IPMAN Y.: Accelerated
Since dist(·, ·) is a local measure and singular values of rigid quadratic proxy for geometric optimization. ACM Transactions
map equal to 1, both (C.4) and (C.5) are equivalent. Clearly, on Graphics (TOG) 35, 4 (2016), 134.
[LGW∗ 07] L I X., G UO X., WANG H., H E Y., G U X., Q IN H.: Har-
(C.5) and (C.1) are equivalent due to Definition 2.1. This proofs
monic volumetric mapping for solid modeling applications. In
the first proposition. The second proposition follows from basic Proceedings of the ACM (2007), pp. 109–120.
rules of SVD, whereas the third proposition is the immediate [LLL15] L EE Y. T., L AM K. C., L UI L. M.: Landmark-matching
consequence of the first two. transformation with large deformation via n-dimensional quasi-
conformal maps. J. Sci. Comput. (2015), 1–29.
Intuitively, we expect a small discrepancy in dist( f , x) when [LPRM02] L ÉVY B., P ETITJEAN S., R AY N., M AILLOT J.: Least squares
conformal maps for automatic texture atlas generation. In Acm
ether f or x are slightly changed. Clearly, if dist(·, ·) is smooth, transactions on graphics (tog) (2002), vol. 21, ACM, pp. 362–
then it is continuous in both f and x 2 . We require C1 con- 371.
tinuity of D to ensure that the gradient descent processes is [NAY17] NAITSAT A LEXANDER S. E., Y. Z. Y.: A differential geometry
well defined. Since many known distortion measures are set approach for change detection in medical imaging. In Computer-
Based Medical Systems. CBMS’17 (2017), IEEE.
as a maximum of several functions, it is important to relax the [NAY18] NAITSAT A LEXANDER C HENG S HICHAO Q. X. F. X. S. E., Y.
smoothness condition to be defined almost everywhere. In this Z. Y.: Geometric approach to detecting volumetric changes in
case, we can define the gradient even for a non-smooth point x medical images. Journal of Computational and Applied Mathe-
matics 329 (2018), 37–50.
using the weak derivative
[NSZ15] NAITSAT A., S AUCAN E., Z EEVI Y. Y.: Volumetric quasi-
conformal mappings - quasi-conformal mappings for volume de-
∂ dist( f , ·) dist( f , x + εh) − dist( f , x) formation with applications to geometric modeling. In Proceed-
, lim sup . (C.8)
∂h x ε→0 εkhk ings of VISIGRAPP 2015 (2015), pp. 46–57.
[NSZ16] NAITSAT A., S AUCAN E., Z EEVI Y. Y.: Geometric approach
to estimation of volumetric distortions. In Proceedings of VISI-
References GRAPP 2016 (2016).
[PP12] PAILLÉ G.-P., P OULIN P.: As-conformal-as-possible discrete
[Ahl66] A HLFORS L. V.: Complex Analysis an Introduction to the The- volumetric mapping. Computers & Graphics 36, 5 (2012), 427–
ory of Analytic Functions of One Complex Variable. 1966. 433.
[AL13] A IGERMAN N., L IPMAN Y.: Injective and bounded distor- [QJKB17] Q IN Z., J UNG G. S., K ANG M. J., B UEHLER M. J.: The me-
tion mappings in 3D. ACM Trans. Graph 32, 4 (2013), 106:1– chanics and design of a lightweight three-dimensional graphene
106:14. assembly. Science advances 3, 1 (2017), e1601536.
[BCWG09] B EN -C HEN M., W EBER O., G OTSMAN C.: Variational har- [RPPSH17] R ABINOVICH M., P ORANNE R., PANOZZO D., S ORKINE -
monic maps for space deformation. In ACM Transactions on H ORNUNG O.: Scalable locally injective mappings. ACM
Graphics (TOG) (2009), vol. 28, ACM, p. 34. Transactions on Graphics (TOG) 36, 2 (2017), 16.
[BDS∗ 12] B OUAZIZ S., D EUSS M., S CHWARTZBURG Y., W EISE T., [SA07] S ORKINE O., A LEXA M.: As-rigid-as-possible surface model-
PAULY M.: Shape-up: Shaping discrete geometry with pro- ing. In Symposium on Geometry processing (2007), vol. 4.
jections. In Computer Graphics Forum (2012), vol. 31, Wiley [Si09] S I H.: A Quality Tetrahedral Mesh Generator and Three-
Online Library, pp. 1657–1667. Dimensional Delaunay Triangulator. Tetgen, 2009. URL:
[Car74] C ARAMAN P.: n-dimensional quasiconformal (QCF) mappings. http://tetgen.berlios.de.
Revised, enlarged and translated from the Roumanian by the au- [WGY∗ 03] WANG Y., G U X., YAU S.-T., ET AL .: Volumetric harmonic
thor. 1974. map. In Communications in Information & Systems (2003),
vol. 3, pp. 191–202.
[WN99] W RIGHT S. J., N OCEDAL J.: Numerical optimization. Springer
Science 35, 67-68 (1999), 135–142.
2σ are continues in x and f if f is restricted to Def(Rn ).
i (d f x )

View publication stats

You might also like