Shape-Aware Matching of Implicit Surfaces Based on Thin Shell Energies

Open Access
Article

Abstract

A shape sensitive, variational approach for the matching of surfaces considered as thin elastic shells is investigated. The elasticity functional to be minimized takes into account two different types of nonlinear energies: a membrane energy measuring the rate of tangential distortion when deforming the reference shell into the template shell, and a bending energy measuring the bending under the deformation in terms of the change of the shape operators from the undeformed into the deformed configuration. The variational method applies to surfaces described as level sets. It is mathematically well-posed, and an existence proof of an optimal matching deformation is given. The variational model is implemented using a finite element discretization combined with a narrow band approach on an efficient hierarchical grid structure. For the optimization, a regularized nonlinear conjugate gradient scheme and a cascadic multilevel strategy are used. The features of the proposed approach are studied for synthetic test cases and a collection of geometry processing examples.

Keywords

Variational shape matching Implicit surfaces Thin shells Weak lower semicontinuity 

Mathematics Subject Classification

Primary 49J45 Secondary 65D18 74K25 68U05 

1 Introduction

We present a variational model for the matching of surfaces implicitly represented as level sets. The approach is inspired by the mathematical theory of nonlinear elasticity of thin shells. The model consists in an energy functional, which is to be minimized among deformations of a computational domain in which two given surfaces are embedded. A minimizer of this functional is a deformation that closely maps one (reference) surface onto the other (template) surface. As the underlying model we consider the reference surface as a thin elastic shell, i.e., a layer of an elastic material embedded in a volume of another several orders of magnitude softer isotropic elastic material. Subject to matching forces the volume is deformed in such a way that the thin shell is mapped onto the template surface. The functional reflects desired phenomena like resistance to compression and expansion of the surface, resistance to bending, and rotational invariance, while solely involving the deformation and the Jacobian of the deformation. The model is formulated in terms of projected derivatives from the tangent space of the reference surface onto the expected tangent space of the template surface. Taking into account a suitable factorization of the natural pullback under a deformation of shape operators enables us to formulate a model with appropriate convexity properties. The actual surface matching constraint is handled through a penalty, allowing for efficient numerical computation.

Through arguments of compensated compactness, we are able to show weak lower semicontinuity of the energy and consequently existence of minimizing deformations. We present a numerical approach based on a multilinear finite element ansatz for the deformation implemented on adaptive octree grids. The resulting discrete energy is minimized in a multiscale fashion applying a regularized gradient descent.

In the conference article [32], a preliminary version of this approach was presented. For the functional in that paper, lower semicontinuity could not be ensured for either the membrane or bending energies. This lack of lower semicontinuity manifests itself in applications, where compression of the surface is expected, and leads to undesired oscillations in almost-minimizing deformations, which we explore in the present work through explicit examples and computations. Additionally, to increase the efficiency the computational meshes are in the present paper adapted to the surfaces. Consequently, the number of degrees of freedom scales asymptotically almost like that of a surface problem.

The main pillar of our modeling is the use of polyconvex energy densities, first introduced in [3]. Energies of this type allow for geometric consistency properties like rotation invariance and the ability to measure area and volume changes. The core insight of this theory is that integrands consisting of convex functions of subdeterminants of the Jacobian give rise to integral functionals that are weakly lower semicontinuous in suitable Sobolev spaces. Indeed, this can be seen as an instance of compensated compactness [50]. A generic polyconvex isotropic energy density of the type used in this work is
$$\begin{aligned} \alpha _p \Vert A\Vert ^p + \beta _q \Vert {\text {Cof}}\,A\Vert ^q + \Gamma (\det A), \end{aligned}$$
(1.1)
for \({\text {Cof}}\,A := \det A\, A^{-T}\) the cofactor matrix of A. Here, the coefficients and the function \(\Gamma \) are such that (1.1) attains a local minimum for \(A \in \text {SO}(n)\), that is, for rigid motions. Such an example is provided in (3.8). Often in the modeling of nonlinear elasticity the condition
$$\begin{aligned} \lim _{\det A \rightarrow 0^+ }\Gamma (A) = +\infty \end{aligned}$$
(1.2)
is added, to reflect the noninterpenetration of matter [4]. In our model, we make use of densities both with and without this property.

Related work Linear elasticity has been extensively used in computer vision and in graphics. Prominent applications are image registration [33, 34, 38, 48, 55], optical flow extraction [35], and shape modeling [29]. Recently, theories of nonlinear elasticity have been applied in many computer vision and graphics problems such as mesh deformation [13], shape averaging [56], registration of medical images [12]. The advantage of nonlinear models is that they allow for intuitive deformations when the displacements are large.

In this paper, we present a model for nonlinear elastic matching of thin shells. A finite element method for the discretization of bending energies of biological membranes has been introduced in [5]. Their approach uses quadratic isoparametric finite elements to approximate the interface on which the gradient flow of an elastic energy of Helfrich type is considered. The papers [9, 10] discuss accurate convex relaxation of higher-order variational problems on curves described as jump sets of functions of bounded variation. In particular, it enables the numerical treatment of elastic energies on such curves.

One challenge in polyhedral surface processing is to provide consistent notions of curvatures and second fundamental forms, i.e., notions that converge (in an appropriate topology or in a measure theoretic sense) to their smooth counterparts, given a smooth limit surface. One computationally popular model for discretizing the second fundamental form is Grinspun’s et al.  [30] discrete shells model. Another efficient and robust method for nonlinear surface deformation and shape matching is PriMo [6]. This approach is based on replacing the triangles of a polyhedral surfaces by thin prisms. During a deformation, these prisms are required to stay rigid, while nonlinear elastic forces are acting between neighboring prisms to account for bending, twisting, and stretching of the surface. We refer to Botsch and Sorkine [7] for a discussion of pros and cons for various such methods. In comparison with methods based on polyhedral surfaces, level set approaches like ours are not dependent on specific triangulations of the shapes.

The matching of surfaces with elastic energies has recently been studied in [61]. Their energy contains a membrane energy depending on the Cauchy–Green strain tensor and a bending-type energy comparing the mean curvatures on the surfaces. The matching problem is formulated in terms of a binary linear program in the product space of sets of surface patches. For computations, a relaxation approach is used.

A different direction is the use of parametric approaches to reduce shape matching problems to the matching of functions on a fixed domain. For example, the methods presented in [60, 62] are based on conformal maps from the unit disk. A more general variant using conformal maps on surfaces with arbitrary topology is presented in [42]. Within the family of parametric methods, a surface matching approach related to ours is presented in [44], where nonlinear elastic energies are used for matching parametrized surface patches. In comparison with all these methods, our level set approach is nonparametric and allows surfaces of any topology, which does not need to be fixed in advance.

In [59], face matching based on a matching of corresponding level set curves on the facial surfaces is investigated. To match pairs of curves an optimal deformation between them is computed using an elastic shape analysis of curves. Compared to our approach, this model does not take into account bending dissipation of the curves.

A different direction in shape recognition and matching is exploiting the intrinsic geometry of the surfaces only, thereby producing isometry-invariant methods based on the first fundamental form, like those in [11, 24]. In comparison, bending is penalized in our model and we use all curvatures of the surfaces and their directions to be able to better match regions of edges and creases correctly.

A method for matching and blending of curves represented by level sets has been presented in [49]. Thereby, a level set evolution generates an interpolating family of curves, where the associated propagation speed of the level sets depends on differences of level set curvatures. In this class of approaches, geometric evolution problems are formulated, whereas here we focus on variational models for matching deformations. Variational registration of implicit surfaces was also considered in [40], but only through volume elasticity, in contrast to our shell terms.

To summarize, the main novelty of our contribution is the combination of independence of mesh topologies arising from the use of level sets, penalization of tangential distortion in a rotationally invariant framework, and awareness both of curvatures and curvature directions of the surfaces in the matching. We are not aware of any other methods possessing all of these features simultaneously.

Our approach is inspired by the articles [21, 22] in which surface PDE models are derived in terms of the signed distance function. Shape warping based on the framework of [21] has been discussed from a geometric perspective in [14].

Outline The paper is organized as follows. In Sect. 2, we review the required preliminaries about distance functions and formulate the geometric nondistortion and matching conditions that inspire our model. In Sect. 3, we present the different contributions to our energy. Section 4 is devoted to proving the existence of minimizing deformations under suitable Dirichlet and Neumann boundary conditions. Furthermore, the strong convergence of solutions for vanishing matching penalty parameter is discussed and counterexamples showing the lack of lower semicontinuity of related simpler models are given. In Sect. 5, a numerical strategy for minimizing the energy on adaptive octree grids is presented. Finally, Sect. 6 contains a range of numerical examples demonstrating the behavior of solutions corresponding to our design criteria and presents several potential applications.

Some useful notation For later usage and the purpose of reference, let us collect some useful notation, mostly introduced in detail in later sections:
  • |B| stands for the Lebesgue measure of \(B \subset \mathbb {R}^n\), and \({\text {diam}}\,B = \sup _{x,y \in B}|x-y|\) for its diameter.

  • Generic matrices are denoted by ABMN. We use \({\mathbb {1}}\) for the identity matrix. The set of rotations is denoted by \(\text {O}(n)\), and \(\text {SO}(n)\) is the set of orientation-preserving rotations. The set of all symmetric and positive definite matrices is \(\text {SPD}(n)\).

  • Components of vectors are denoted with subindices. For \(v\in \mathbb {R}^n\), |v| denotes its Euclidean norm. The \((n-1)\)-dimensional sphere is \(\mathbb {S}^{n-1}\). For a matrix M, |M| is the Frobenius norm.

  • For two column vectors \(v,w \in \mathbb {R}^n\), \(v \otimes w\) is the tensor product of v and w, that is, the square matrix \(v w^T\). In particular, if \(|w|=1\) we have the identity \((v \otimes w) w = v\).

  • \(\text {P}(e)={\mathbb {1}}- e \otimes e\) is the projection onto vectors orthogonal to \(e \in \mathbb {S}^{n-1}\).

  • Deformations on \(\mathbb {R}^n\) are denoted by \(\phi \), and deformations defined on a hypersurface \(\mathcal {M}\subset \mathbb {R}^n\) by \(\varphi \). The identity deformation is denoted by \({\text {id}}\).

  • \(\Omega \subset \mathbb {R}^n\) denotes the computational domain. Every relevant deformation \(\phi \) maps \(\Omega \) into \(\mathbb {R}^n\). \(\Omega \) has to contain all computationally relevant manifolds \(\mathcal {M}\). \(\Omega \) has Lipschitz boundary, is open and bounded.

  • We use the notation \(\partial _i\) for partial derivatives, \(\nabla \) for the gradient of a scalar function, \(\mathcal {D}\) for the Jacobian matrix of a vector function and \(\mathcal {D}^2\) for the Hessian matrix of a scalar function.

  • \(\mathcal {M}_1, \mathcal {M}_2 \subset \Omega \) are \(C^{2,1}\) compact hypersurfaces. The inside and outside components of \(\Omega \setminus \mathcal {M}_i\) are well defined by the Jordan–Brouwer separation theorem ([31], Chapter 2, Section 5).

The signed distance function to \(\mathcal {M}_1, \mathcal {M}_2\) is denoted by \(\mathbf{{d}}_1, \mathbf{{d}}_2\). The sign convention is that \(\mathbf{{d}}_i\) is negative on the inside of \(\mathcal {M}_i\), so that \(\mathbf{{d}}_i(x)=-{\text {dist}}(x, \mathcal {M}_i)\) if x is in the inside component of \(\Omega \setminus \mathcal {M}_i\) and \(\mathbf{{d}}_i(x)={\text {dist}}(x, \mathcal {M}_i)\) otherwise, where the distance functions \({\text {dist}}(\cdot , \mathcal {M}_i)\), \(i=1,2\) are the unique viscosity solutions of \(1-|\nabla {\text {dist}}(\cdot , \mathcal {M}_i)|=0\) and \({\text {dist}}(\cdot , \mathcal {M}_i)=0\) on \(\mathcal {M}_i\). The normal fields to the offsets of \(\mathcal {M}_i\) at a point x are denoted by \(\mathbf{{n}}_i(x):=\nabla \mathbf{{d}}_i(x)\). A superscript next to \(\mathcal {M}_i\) (\(i=1,2\)), as in \(\mathcal {M}_i^c\), denotes that we are talking about a level set of \(\mathbf{{d}}_i\) with value different from zero, so that \(\mathcal {M}_i^c := \mathbf{{d}}_i^{-1}(c)\).

\(T_x\mathcal {M}_i^{\mathbf{{d}}_i(x)}\) denotes the tangent space to \(\mathcal {M}_i^{\mathbf{{d}}_i(x)}\) at x. The outwards normal to \(\mathcal {M}_i^{\mathbf{{d}}_i(x)}\) is given by \(\mathbf{{n}}_i(x)\), and the set of points where \(\mathbf{{d}}_i\) is not differentiable is denoted by \({\text {sing}}\,\mathbf{{d}}_i\).

We use \({\mathcal {S}}_i = \mathcal {D}^2 \mathbf{{d}}_i\) for the Hessian of \(\mathbf{{d}}_i\), which coincides with an extended shape operator of \(\mathcal {M}_i\).
  • \(\lambda , \mu \) are the Lamé coefficients of an isotropic material in linearized elasticity.

  • \(C^0(\Omega ;\mathbb {R}^n)\) is the space of continuous functions from the domain \(\Omega \) to the range \(\mathbb {R}^n\), \(C^{k,\alpha }\) the Hölder spaces in which the k-th derivative is \(\alpha \)-Hölder continuous, including the Lipschitz case \(\alpha =1\). The range of the spaces is specified unless it is \(\mathbb {R}\). Sobolev spaces are denoted by \(W^{1,p}\) and the closure of compactly supported smooth functions in them by \(W_0^{1,p}\).

  • The letter C is reserved for a generic positive constant that may have different values in each appearance. Sequence indexing is usually denoted by a superscript k, and limits by an overline, e.g., \(\phi ^k \rightarrow \overline{\phi }\).

2 Deformation and Matching of Level Set Hypersurfaces

We are given two compact, connected embedded hypersurfaces \(\mathcal {M}_1,\mathcal {M}_2\) of class \(C^{2,1}\), which are diffeomorphic to each other, and both of which are contained in a bounded Lipschitz domain \(\Omega \subset \mathbb {R}^{n}\). In this section, we deal with the tangential distortion and the change of the shape operator under a deformation \(\phi : \Omega \rightarrow \mathbb {R}^n\).

For any \(c \in \mathbb {R}\), we denote the c-offsets to the hypersurface \(\mathcal {M}_i\) by \(\mathcal {M}_i^c := \{ x \in \Omega \,|\, \mathbf{{d}}_i(x) = c \}\,\). Furthermore, we define the singularity set \({\text {sing}}\,\mathbf{{d}}_i\) as the set of points where \(\mathbf{{d}}_i\) is not differentiable. With the regularity of \(\mathcal {M}_i\) that we have assumed, it is well known (e.g., Theorem 1.1, Corollary 1.3 and Remark 1.4 of [43]) that \({\text {sing}}\,\mathbf{{d}}_i\) has Lebesgue measure zero and \({\text {dist}}(\mathcal {M}_i, {\text {sing}}\,\mathbf{{d}}_i) > 0\). Furthermore, combining [21, Theorem 5.6] and [45, Proposition 4.6, 7.] we see that \(\mathbf{{d}}_i \in C^2(\overline{\Omega } \setminus \overline{{\text {sing}}\,\mathbf{{d}}_i})\).

The gradient of the signed distance function \(\nabla \mathbf{{d}}_i(x)\) is the outward-pointing unit normal \(\mathbf{{n}}_i(x)\) to \(\mathcal {M}_i^{\mathbf{{d}}_i(x)}\) at a point x. The tangent space to \(\mathcal {M}^{\mathbf{{d}}_i(x)}_i\) at x, denoted by \(T_x \mathcal {M}^{\mathbf{{d}}_i(x)}_i\), consists of all vectors orthogonal to \(\mathbf{{n}}_i(x)\). Then, the corresponding projection matrices onto the tangent spaces are defined by
$$\begin{aligned} \text {P}_i(x) := \text {P}(\mathbf{{n}}_i(x))={\mathbb {1}}- \mathbf{{n}}_i(x) \otimes \mathbf{{n}}_i(x). \end{aligned}$$
Note that \({\mathcal {S}}_i(x):=\mathcal {D}^2 \mathbf{{d}}_i(x)=\mathcal {D}\mathbf{{n}}_i(x) \text {P}_i(x)\) is the shape operator of the immersed hypersurface \(\mathcal {M}^{\mathbf{{d}}_i(x)}_i\) at a point x. In fact, from \(|\mathbf{{n}}_i(x)|^2=1\) we deduce by differentiation that \(\mathbf{{n}}_i^T(x){\mathcal {S}}_i(x)=0\). This, together with the fact that \(\mathbf{{n}}_i \otimes \mathbf{{n}}_i\) is the projection onto the normal of the hypersurface \({\mathcal {S}}_i\) shows that
$$\begin{aligned} \text {P}_i(x) \mathcal {D}\mathbf{{n}}_i (x) = \mathcal {D}\mathbf{{n}}_i(x). \end{aligned}$$
With our choice of signs for \(\mathbf{{d}}_i\), the symmetric matrices \({\mathcal {S}}_i\) are positive semidefinite for convex hypersurfaces \(\mathcal {M}_i\). Further information on tangential calculus for level set functions may be found in Chapter 9 of [23].

2.1 Tangential Derivative and Area and Length Distortion

First, let us assume that \(\phi \) exactly maps \(\mathcal {M}_1^c\) onto \(\mathcal {M}_2^c\), for all \(c>0\). Then, \(T_x \mathcal {M}_1^{\mathbf{{d}}_1(x)}={\text {im}}\text {P}_1(x)\) and \(T_{\phi (x)}\phi (\mathcal {M}_1^{\mathbf{{d}}_1(x)})=T_{\phi (x)}\mathcal {M}_2^{\mathbf{{d}}_2(\phi (x))}={\text {im}}\text {P}_2 ( \phi (x) )\) and we define the tangential derivative induced by the deformation \(\phi \) as
$$\begin{aligned} \mathcal {D}_{\text {tg}}\phi (x):=\text {P}_2( \phi (x) ) \, \mathcal {D}\phi (x) \, \text {P}_1 (x)\,, \end{aligned}$$
(2.1)
capturing the tangential variation of \(\phi (x)\) on \(\mathcal {M}_2\) along tangential directions on \(\mathcal {M}_1\). In the variational model, we consider below an energy term depending on \(\mathcal {D}_{\text {tg}}\phi (x)\) will reflect the tangential distortion of the deformation in the context of a matching of the two hypersurfaces \(\mathcal {M}_1\) and \(\mathcal {M}_2\) even though \(\phi (\mathcal {M}_1)\) does not necessarily equal \(\mathcal {M}_2\). Indeed, in the case \(\mathcal {M}_2 \ne \phi (\mathcal {M}_1)\) the variation along a tangent direction on \(\mathcal {M}_1\) is still projected via \(\mathcal {D}_{\text {tg}}\phi (x)\) onto the tangent space \(T_{\phi (x)}\mathcal {M}_2^{\mathbf{{d}}_2(\phi (x))}\) and not onto the tangent space of the deformed hypersurface \(\phi (\mathcal {M}_1)\) (cf. Fig. 1). Therefore, there may exist tangential directions \(v \in T_x \mathcal {M}_1^{\mathbf{{d}}_1(x)}\), such that \(\mathcal {D}_{\text {tg}}\phi (x) v =0\) even though \(\mathcal {D}\phi v \ne 0\). Thus \(\mathcal {D}_{\text {tg}}\phi (x)\) can only be considered a measure of tangential distortion if \(\phi (\mathcal {M}_1)\) is sufficiently close to \(\mathcal {M}_2\) in the sense of closeness of tangent bundles.
Fig. 1

A sketch of the tangential derivative \(\mathcal {D}_{\text {tg}}\phi \) in the nonexact matching case with \(\phi (\mathcal {M}_1) \ne \mathcal {M}_2\)

For a general deformation \(\psi :\mathbb {R}^n\rightarrow \mathbb {R}^n\) the Cauchy–Green strain tensor \(\mathcal {D}\psi ^T \mathcal {D}\psi \) describes (up to first order) the deformation in a frame invariant (with respect to rigid body motions) way. Since we are interested in the effect of such a deformation between two hypersurfaces, for a suitably extended tangential gradient \(\mathcal {D}_{\text {tg}}\phi + \mathbf{{n}}_2\circ \phi \otimes \mathbf{{n}}_1\) we define the extended tangential part of the Cauchy–Green strain tensor, measuring only tangential distortion:
$$\begin{aligned} \begin{aligned}&\left( \mathcal {D}_{\text {tg}}\phi + (\mathbf{{n}}_2\circ \phi ) \otimes \mathbf{{n}}_1\right) ^T \left( \mathcal {D}_{\text {tg}}\phi + (\mathbf{{n}}_2 \circ \phi ) \otimes \mathbf{{n}}_1\right) \\&\quad =\mathcal {D}_{\text {tg}}\phi ^T \mathcal {D}_{\text {tg}}\phi + \mathbf{{n}}_1 \otimes \mathbf{{n}}_1\,. \end{aligned} \end{aligned}$$
(2.2)
The term \(\mathbf{{n}}_2(\phi (x)) \otimes \mathbf{{n}}_1(x)\) is used to complement directions that are removed by the projections in the definition of the tangential distortion \(\mathcal {D}_{\text {tg}}\phi \) and can be seen to realize a nonlinear Kirchhoff–Love assumption [18, Page 336], which postulates that lines normal to the middle surface of a shell remain normal after the deformation, without stretching.
Next, we investigate the area and length distortion due to the tangential derivative \(\mathcal {D}_{\text {tg}}\phi \). For a given vector \(e \in \mathbb {R}^n\) we denote by \(\text {Q}(e)\) any proper rotation such that \(\text {Q}(e) e_n = e\), where \(e_n\) denotes the n-th element of the canonical basis of \(\mathbb {R}^n\). Note that this condition does not specify a unique \(\text {Q}(e)\). Then, for every \(B \in \mathbb {R}^{n \times n}\) satisfying \(w \in \ker B\) and \({\text {im}}B \subseteq v^\perp \) for some unit vectors \(v,w \in \mathbb {S}^{n-1}\), we have
$$\begin{aligned} \begin{gathered} \text {Q}(v)^T ( B + v \otimes w ) \text {Q}(w) = \text {Q}(v)^T B \text {Q}(w) + e_n \otimes e_n=\left( \begin{array}{c|c} \tilde{B} &{} 0 \\ \hline 0 &{} 1 \end{array} \right) , \end{gathered} \end{aligned}$$
(2.3)
where \(\tilde{B}\) is the upper left \((n-1)\times (n-1)\) submatrix of \(\text {Q}(v)^T B \text {Q}(w)\). Obviously, (2.3) implies
$$\begin{aligned} \det (B + v \otimes w)= & {} \det (\tilde{B})\,,\\ |B+ v\otimes w|^2= & {} {\mathrm {tr}}\big ( (B + v\otimes w)^T(B+ v\otimes w) \big )= 1+ | \tilde{B} |^2\,. \end{aligned}$$
Hence, for \(\phi (\mathcal {M}_1)=\mathcal {M}_2\) and \(v=n_2(\phi (x))\), \(w=n_1(x)\) the area distortion under the hypersurface matching deformation \(\phi \) at some position x is described by \(\det (\mathcal {D}_{\text {tg}}\phi (x) + \mathbf{{n}}_2(\phi (x)) \otimes \mathbf{{n}}_1(x))\), which equals the positive square root of the determinant of the above Cauchy–Green strain tensor \(\mathcal {D}_{\text {tg}}\phi ^T \mathcal {D}_{\text {tg}}\phi + \mathbf{{n}}_1 \otimes \mathbf{{n}}_1\). The squared tangential length distortion (in the sense of summing all squared distortions with respect to an orthogonal basis) is described by \(|\mathcal {D}_{\text {tg}}\phi (x) + \mathbf{{n}}_2(\phi (x)) \otimes \mathbf{{n}}_1(x))|^2\) and equals the trace of the Cauchy–Green strain tensor.

2.2 Bending and Curvature Mismatch

Now, we quantify the change of curvature directions and magnitudes under the deformation \(\phi \). Our approach is motivated by models describing bending of elastic shells, because in our application the hypersurfaces are considered as thin shells.

In order to quantify the changes of curvature, we first assume that \(\phi (\mathcal {M}_1)=\mathcal {M}_2\), and compute the difference of the pull back of the shape operator \({\mathcal {S}}_2\) on \(\mathcal {M}_2\) onto \(\mathcal {M}_1\) under the deformation \(\phi \) and the shape operator \({\mathcal {S}}_1\) on \(\mathcal {M}_1\), which, for two arbitrary directions \(v,\,w\in \mathbb {R}^n\), is given by
$$\begin{aligned}&{\mathcal {S}}_2(\phi (x)) \mathcal {D}\phi (x) v \cdot \mathcal {D}\phi (x) w - {\mathcal {S}}_1(x) v \cdot w \\&\quad = \left( \mathcal {D}\phi (x)^T {\mathcal {S}}_2(\phi (x)) \mathcal {D}\phi (x) - {\mathcal {S}}_1(x)\right) v\cdot w\;. \end{aligned}$$
If \(v,\,w\) are tangent vectors in \(T_x \mathcal {M}_1\), this difference describes the relative shape operator.
We define the extended relative shape operator
$$\begin{aligned} {\mathcal {S}}_{rel}(x) := \mathcal {D}\phi (x)^T {\mathcal {S}}_2(\phi (x)) \mathcal {D}\phi (x) - {\mathcal {S}}_1(x)\,. \end{aligned}$$
(2.4)
For \(n=3\) and when \(\phi \) is an isometric deformation between \(\mathcal {M}_1\) and \(\mathcal {M}_2\) (that is, \(\mathcal {D}\phi (x)\) is an orthogonal mapping on \(T_x \mathcal {M}_1\) for all \(x\in \mathcal {M}_1\)), \({\mathcal {S}}_{rel}\) appears in physical models for thin elastic shells in the context of the \(\Gamma -\)limit of \(\mathrm {3D}\) hyperelasticity [28]. Even though we do not necessarily expect our deformations to be tangentially isometric, we use this ansatz to compare curvatures of level sets in deformed and undeformed configuration, respectively. The following calculations shed some light on the properties of \({\mathcal {S}}_{rel}\):
$$\begin{aligned} \begin{aligned} \mathcal {D}^2(\mathbf{{d}}_2 \circ \phi )(x)&=\mathcal {D}\big ((\mathcal {D}\phi )^T(\mathbf{{n}}_2 \circ \phi )\big )(x)\\&=\mathcal {D}\phi (x)^T {\mathcal {S}}_2(\phi (x)) \mathcal {D}\phi (x) + \sum _{k=1}^n \big (\mathbf{{n}}_2(\phi (x))\big )_k \mathcal {D}^2\phi ^k(x)\,. \end{aligned} \end{aligned}$$
(2.5)
The assumption that \(\phi (\mathcal {M}_1)=\mathcal {M}_2\) can be rewritten as \(\mathbf{{d}}_2 \circ \phi (x) = 0\) for \(x \in \mathcal {M}_1\). Let us assume that in addition \(\mathbf{{d}}_2 \circ \phi \) is a distance function (that is \(|\nabla ( \mathbf{{d}}_2 \circ \phi )|=1\)), then \(\mathbf{{d}}_2 \circ \phi \) is again a distance function, and since \(\mathbf{{d}}_2 \circ \phi = 0\) it follows that the left-hand side of (2.5) is the shape operator of the hypersurface \(\mathcal {M}_1\). The first term in the right-hand side is the pullback of \({\mathcal {S}}_2\).
Let us remark that the appearance of a second fundamental form is consistent with Koiter’s nonlinear thin shell theory [36], [18, Section 11.1]. Regardless of whether \(\mathbf{{d}}_2 \circ \phi \) is a distance function or not, (2.5) implies that
$$\begin{aligned} \begin{aligned}&\mathcal {D}\phi (x)^T {\mathcal {S}}_2(\phi (x)) \mathcal {D}\phi (x) - {\mathcal {S}}_1(x) \\&\quad =- \sum _{k=1}^n (\mathbf{{n}}_2(\phi (x)))_k \mathcal {D}^2\phi ^k(x) +\mathcal {D}^2(\mathbf{{d}}_2\circ \phi - \mathbf{{d}}_1)(x) \\&\quad =- \sum _{k=1}^n (\mathbf{{n}}_2(\phi (x)))_k \mathcal {D}^2\phi ^k(x), \end{aligned} \end{aligned}$$
(2.6)
in case \(\mathbf{{d}}_2 \circ \phi = \mathbf{{d}}_1\). In the next section, we use the extended relative shape operator to derive a variational model for the mismatch of curvatures.

3 Energy Functional

Given two hypersurfaces \(\mathcal {M}_1\) and \(\mathcal {M}_2\) our ultimate goal is to describe best matching deformations \(\phi \), which map \(\mathcal {M}_1\) onto \(\mathcal {M}_2\) as the minimizer of a suitable energy. Thereby, different energy terms will reflect a set of matching conditions for a volumetric deformation \(\phi :\Omega \rightarrow \mathbb {R}^{n}\) and without a hard constraint \(\phi (\mathcal {M}_1) = \mathcal {M}_2\):
  • A membrane deformation energy \(E_{\text {mem}}\) penalizes the tangential distortion measured through \(\mathcal {D}_{\text {tg}}\phi \).

  • A bending energy \(E_{\text {bend}}\) penalizes bending as reflected by the relative shape operator.

  • A matching penalty \(E_{\text {match}}\) ensures a proper matching of the two hypersurfaces \(\mathcal {M}_1\) onto \(\mathcal {M}_2\) via a narrow band approach.

  • A volume energy \(E_{\text {vol}}\) enforces a regular deformation on the whole computational domain \(\Omega \).

Our approach is based on level sets. Hence, we replace the integration over a single hypersurface, i.e., \(\mathcal {M}_1\), for the first three energies by a weighted integration over a narrow band of width \(\sigma \) with \(0< \sigma < {\text {dist}}(\mathcal {M}_1, {\text {sing}}\,\mathbf{{d}}_1)\). To this end, we will make use of a cutoff function \(\eta _\sigma \in C^\infty _0(\mathbb {R})\) with \(\int _\mathbb {R}\eta _\sigma (t) {{\text {d}}}t =1\) and \({\text {supp}}\,\eta _\sigma = [-\sigma , \sigma ]\). Additionally, \(\eta _\sigma \) is assumed to be even and strictly decreasing in \([0,+\infty )\).

In what follows we introduce the four energy contributions separately.

3.1 Tangential Distortion Energy

Picking up the insight gained in Sect. 2.1, we formulate the membrane energy in terms of the length and area change associated with the tangential distortion \(\mathcal {D}_{\text {tg}}\phi \):
$$\begin{aligned} E_{\text {mem}}[\phi ]= \delta \int _\Omega \eta _\sigma (\mathbf{{d}}_1(x)) W\big ( \mathcal {D}_{\text {tg}}\phi (x) + \mathbf{{n}}_2(\phi (x)) \otimes \mathbf{{n}}_1(x) \big ) \,{{\text {d}}}x, \end{aligned}$$
(3.1)
where \(W\) is a nonnegative polyconvex energy density vanishing at \(\text {SO}(n)\). The weight \(\delta \) reflects the proper scaling of the tangential distortion energy in case of a thin shell model with shell thickness \(\delta \).

The energy (3.1) vanishes only on deformations \(\phi \) whose Jacobian matrix \(\mathcal {D}\phi (x)\) maps \(T\mathcal {M}_1^{\mathbf{{d}}_1(x)}\) isometrically onto \(T\mathcal {M}_2^{\mathbf{{d}}_2(\phi (x))}\) for every point \(x \in {\text {supp}}\,{\eta _\sigma \circ \mathbf{{d}}_1}\). In consequence, both tangential expansion and compression are penalized.

Let us remark, that the extension \(\mathcal {D}_{\text {tg}}\phi + \mathbf{{n}}_2(\phi (x)) \otimes \mathbf{{n}}_1(x)\) of the tangential derivative \(\mathcal {D}_{\text {tg}}\phi \) defined in (2.1) with rank \(n-1\) can degenerate or be orientation-reversing depending on the local configuration of \(\mathcal {M}_1\) and \(\mathcal {M}_2\) at x (cf. Fig. 2 for examples).
Fig. 2

Configurations in which for the (obviously isometric) identity we have \(\det ( \mathcal {D}_{\text {tg}}{\mathbb {1}}(x) + \mathbf{{n}}_2({\mathbb {1}}x) \otimes \mathbf{{n}}_1( x ) ) = 0\) (left) and \(\det \left( \mathcal {D}_{\text {tg}}{\mathbb {1}}(x) + \mathbf{{n}}_2({\mathbb {1}}x) \otimes \mathbf{{n}}_1( x ) \right) < 0\) (right) and thus the extended tangential derivative degenerates or reverses orientation

Furthermore, the energy density W should not satisfy \(W(B) \rightarrow \infty \) for \(\det B \rightarrow 0\). A straightforward modification of the arguments of Ciarlet and Geymonat ([16, 17] Theorem 4.10-2) leads to a smooth integrand \(W\) which has isometries as local minimizers, with the correct invariance properties, and with a Hessian for \(B={\mathbb {1}}\) which matches the quadratic energy integrand of the Lamé-Navier model of linearized elasticity. With given Lamé coefficients \(\lambda , \mu > 0\), we select the energy
$$\begin{aligned} W(A)=\frac{\mu }{2}| A |^2 + \frac{\lambda }{4} (\det A)^2 + \left( \mu + \frac{\lambda }{2}\right) e^{- ( \det A - 1 ) } - \frac{(n+2) \mu }{2} - \frac{3\lambda }{4}\,. \end{aligned}$$
This density fits into the notation of (1.1), if we choose \(p=q=2\) and \(\Gamma (t)=c t^2 + d e^{- (t-1) }\;.\)

3.2 Bending Energy

Now, we discuss a variational formulation of the curvature matching condition \(\mathcal {D}\phi (x)^T {\mathcal {S}}_2(\phi (x)) \mathcal {D}\phi (x) = {\mathcal {S}}_1(x)\), which is equivalent to a vanishing relative shape operator [cf. (2.4)], where \({\mathcal {S}}_i = \mathcal {D}\mathbf{{n}}_i \text {P}_i = \text {P}_i \mathcal {D}^2 \mathbf{{d}}_i \text {P}_i\) for \(i=1,2\) are the shape operators on the hypersurfaces \(\mathcal {M}_1\) and \(\mathcal {M}_2\), respectively. At first sight, it appears natural to formulate a quadratic penalization and to define a bending energy
$$\begin{aligned} {\tilde{E}}_{\text {bend}}[\phi ]= \delta ^3 \int _\Omega \eta _\sigma (\mathbf{{d}}_1(x)) |\mathcal {D}\phi (x)^T {\mathcal {S}}_2(\phi (x)) \mathcal {D}\phi (x) - {\mathcal {S}}_1(x)|^2 {{\text {d}}}x\,. \end{aligned}$$
The weight \(\delta ^3\) reflects the scaling of the bending energy for thin shells of thickness \(\delta \). However, this energy is in general not weakly lower semicontinuous. Indeed, consider a situation in which \({\mathcal {S}}_1(x) = {\mathcal {S}}_2(\phi (x)) = P(e_n)\). A short computation shows that the corresponding density is not convex in its matrix variable along the rank-one segment joining \({\mathbb {1}}-\frac{3}{4}e_1 \otimes e_1\) and \({\mathbb {1}}-\frac{1}{2}e_1 \otimes e_1\), which precludes lower semicontinuity (cf. also Example 4.8 on the lack of rank-one convexity). In fact, this kind of density is closely related to the Saint Venant–Kirchhoff energy, whose quasiconvex envelope is computed in [39].

Thus, we are asking for an alternative lower semicontinuous energy functional which gives preference to deformations \(\phi \) for which \(\mathcal {D}\phi ^T ( {\mathcal {S}}_2\circ \phi ) \mathcal {D}\phi \) is close to \({\mathcal {S}}_1\). We show that this can be achieved with the extended shape operators \({\mathcal {S}}^{ext}_i = \text {P}_i \mathcal {D}^2 \mathbf{{d}}_i \text {P}_i + \mathbf{{n}}_i \otimes \mathbf{{n}}_i\) for \(i=1,2\) and factorization. For proving this, we make use of the following lemma.

Lemma 3.1

(Modified curvature matching condition) Assume that M, N are two symmetric, positive definite matrices satisfying
$$\begin{aligned} M = \text {P}_1 M \text {P}_1 + \mathbf{{n}}_1 \otimes \mathbf{{n}}_1 \text { and } N = \text {P}_2 N \text {P}_2 + \mathbf{{n}}_2\otimes \mathbf{{n}}_2\;. \end{aligned}$$
Moreover, assume that \(A\in \mathbb {R}^{n \times n}\) satisfies
$$\begin{aligned} A \text {P}_1 = \text {P}_2 A\,, \end{aligned}$$
then the following statements are equivalent:
$$\begin{aligned} A^T \text {P}_2 N \text {P}_2 A = \text {P}_1 M \text {P}_1 \end{aligned}$$
(3.2)
and
$$\begin{aligned} \Lambda [M,N,A] := \text {P}_2 N^{\frac{1}{2}} \text {P}_2 A \text {P}_1 M^{-\frac{1}{2}} \text {P}_1 + \mathbf{{n}}_2 \otimes \mathbf{{n}}_1 \in \text {O}(n)\,. \end{aligned}$$
(3.3)

Proof

By definition, the matrix \(\Lambda [M,N,A]\) is orthogonal if \(\Lambda [M,N,A]^T \Lambda [M,N,A] = {\mathbb {1}}\). Therefore, if (3.3) holds, then
$$\begin{aligned} {\mathbb {1}}= & {} (\text {P}_2 N^{\frac{1}{2}} \text {P}_2 A \text {P}_1 M^{-\frac{1}{2}} \text {P}_1 + \mathbf{{n}}_2 \mathbf{{n}}_1^T)^T (\text {P}_2 N^{\frac{1}{2}} \text {P}_2 A \text {P}_1 M^{-\frac{1}{2}} \text {P}_1 + \mathbf{{n}}_2 \mathbf{{n}}_1^T) \\= & {} \text {P}_1 M^{-\frac{1}{2}} \text {P}_1 A^T \text {P}_2 N^{\frac{1}{2}} \text {P}_2 \text {P}_2 N^{\frac{1}{2}} \text {P}_2 A \text {P}_1 M^{-\frac{1}{2}} \text {P}_1 + \mathbf{{n}}_1 \mathbf{{n}}_2^T \mathbf{{n}}_2 \mathbf{{n}}_1^T \\= & {} \text {P}_1 M^{-\frac{1}{2}} A^T \text {P}_2 (\text {P}_2 N^{\frac{1}{2}} \text {P}_2)^2 \text {P}_2 A M^{-\frac{1}{2}} \text {P}_1 + \mathbf{{n}}_1 \mathbf{{n}}_1^T \,. \end{aligned}$$
If we multiply this equation from left and right by \(\text {P}_1 M^{\frac{1}{2}} \text {P}_1\) and take into account that \((\text {P}_2 N^{\frac{1}{2}} \text {P}_2)^2 = \text {P}_2 N \text {P}_2\) and \((\text {P}_1 M^{\frac{1}{2}} \text {P}_1)^2 = \text {P}_1 M \text {P}_1\) we see that this is equivalent to
$$\begin{aligned} \text {P}_1 A^T \text {P}_2 N \text {P}_2 A \text {P}_1 = \text {P}_1 M \text {P}_1\,. \end{aligned}$$
Applying that \(A \text {P}_1 = \text {P}_2 A\) we finally achieve at the equivalent condition
$$\begin{aligned} A^T \text {P}_2 N \text {P}_2 A = \text {P}_1 M \text {P}_1\,. \end{aligned}$$
The proof of the converse follows the same steps in opposite direction. \(\square \)
If the assumptions of this lemma apply to \(M={\mathcal {S}}^{ext}_1(x)\), \(N={\mathcal {S}}^{ext}_2(y)\), and \(A= \mathcal {D}\phi (x)\) with \(y=\phi (x)\), then the curvature matching condition
$$\begin{aligned} (\mathcal {D}\phi (x))^T \text {P}_2(y) {\mathcal {S}}^{ext}_2(y) \text {P}_2(y) \mathcal {D}\phi (x) = \text {P}_1(x) {\mathcal {S}}^{ext}_1(x) \text {P}_1(x) \end{aligned}$$
(3.4)
is equivalent to \(\Lambda ({\mathcal {S}}^{ext}_1(x),{\mathcal {S}}^{ext}_2(\phi (x)) ,\mathcal {D}\phi (x)) \in \text {O}(n)\) and a lower semicontinuous energy functional penalizing deviations of \(\Lambda ({\mathcal {S}}^{ext}_1(x),{\mathcal {S}}^{ext}_2(\phi (x)) ,\mathcal {D}\phi (x))\) from \(\text {O}(n)\) would be a proper choice for realizing curvature matching. Unfortunately, the positive definiteness assumption of Lemma 3.1 is not fulfilled if principal curvatures of \(\mathcal {M}_1\) or \(\mathcal {M}_2\) are negative. Hence, we are replacing the extended shape operator matrices \({\mathcal {S}}_i^{ext}\) by symmetric and positive definite curvature classification matrices \(C_i = {\mathcal {C}}({\mathcal {S}}_i^{ext})\), \(i=1,2\), respectively.
We have experimented with two different choices for \({\mathcal {C}}\):
  • A simple choice is \({\mathcal {C}}({\mathcal {S}}_i^{ext})= {\mathcal {S}}_i^{ext} + \mu {\mathbb {1}}\), where \(-\mu \) is a strict lower bound of the principal curvatures. But in applications surfaces are frequently characterized by strong creases or rather sharp edges, leading to very large \(\mu \). As a consequence, the relative difference of the eigenvalues is significantly reduced when dealing with the resulting curvature classification matrices. Thus, the variational approach is less sensitive to different principal curvatures of the input hypersurfaces.

  • Another option is to use a truncation of the absolute value function for the eigenvalues of symmetric matrices. For a symmetric matrix \(B\in \mathbb {R}^{n,n}\) with eigenvalues \(\lambda _1,\ldots , \lambda _n\) and a diagonalization \(B=Q^T \mathrm {diag}(\lambda _1,\ldots , \lambda _n) Q\) we use the classification operator
    $$\begin{aligned} {\mathcal {C}}(B) = Q^T \mathrm {diag}(|\lambda _1|_\tau ,\ldots , |\lambda _n|_\tau ) Q\,, \end{aligned}$$
    where \(|\lambda |_\tau = \max \{|\lambda |, \tau \}\) for some \(\tau >0\). This approach properly represents the exact shape operator matching objective in case of principal curvatures of equal sign and absolute value larger than \(\tau \). A disadvantage of this construction is that it is not able to force the deformation to correctly match curvature directions on the hypersurface with the same absolute value of the principal curvatures but with different signs. That is, locally a saddle point of the hypersurface may be mistaken for an elliptical point. However, this effect is usually compensated globally, and in applications the ansatz performs well, in particular in matching regions of edges and creases (see Sect. 6).
Like for the membrane energy (3.1), if \(\mathcal {D}\phi (x)\) is ensured to be orientation-preserving (\(\det \mathcal {D}\phi >0\)) and \(\mathbf{{n}}_1 \cdot ( \mathbf{{n}}_2 \circ \phi ) > 0\) (cf. Fig. 2), the curvature matching condition is equivalent to
$$\begin{aligned} \Lambda ({\mathcal {C}}({\mathcal {S}}^{ext}_1(x)),{\mathcal {C}} ({\mathcal {S}}^{ext}_2(\phi (x))) ,\mathcal {D}\phi (x)) \in \text {SO}(n). \end{aligned}$$
Based on these considerations, a suitable choice for the bending energy is
$$\begin{aligned} E_{\text {bend}}[\phi ]= \delta ^3 \int _\Omega \eta _\sigma (\mathbf{{d}}_1(x)) W\big (\Lambda \left( {\mathcal {C}}({\mathcal {S}}^{ext}_1(x)), {\mathcal {C}}({\mathcal {S}}^{ext}_2(\phi (x))) ,\mathcal {D}\phi (x)\right) \big ) \,{{\text {d}}}x, \end{aligned}$$
(3.5)
where \(W\) can be chosen as the same polyconvex density already used for \(E_{\text {mem}}\).

3.3 Mismatch Penalty and Volumetric Regularization Energies

So far, we have defined tangential membrane and bending energies which quantify the appropriateness of deformations \(\phi :\Omega \rightarrow \mathbb {R}^n\) in a narrow band around the hypersurface \(\mathcal {M}_1\). In the derivation of these energies, we assumed the constraint \(\phi (\mathcal {M}_1)=\mathcal {M}_2\). However, such a constraint would be very hard to enforce numerically. Thus, we use a weaker mismatch penalty instead:
$$\begin{aligned} E_{\text {match}}[\phi ]=\frac{1}{\nu }\int _\Omega ( \eta _\sigma \circ \mathbf{{d}}_1 ) \big | \mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1 \big |^2\, {{\text {d}}}x\,, \end{aligned}$$
(3.6)
where \(1/\nu \) is a penalization parameter.
Moreover, we aim for a regular deformation on the whole computational domain \(\Omega \) which is globally injective. This, in particular, prevents from self-intersections of the deformed hypersurface \(\phi (\mathcal {M}_1)\). To achieve this, we introduce the following volume regularization term based on a polyconvex density \(\hat{W}\) that enforces orientation preservation
$$\begin{aligned} E_{\text {vol}}[\phi ] ={\left\{ \begin{array}{ll}\int _\Omega \hat{W}(\mathcal {D}\phi , {\text {Cof}}\,\mathcal {D}\phi ,\det \mathcal {D}\phi )\,{{\text {d}}}x &{}\text {if } \det \mathcal {D}\phi (x) > 0 \text { for a.e. }x, \\ +\infty &{}\text {otherwise,} \end{array}\right. } \end{aligned}$$
(3.7)
where
$$\begin{aligned} {{\hat{W}}}(\mathcal {D}\phi ,{\text {Cof}}\,\mathcal {D}\phi ,\det \mathcal {D}\phi ) = \alpha _p |\mathcal {D}\phi |^{p}+ \beta _q |{\text {Cof}}\,\mathcal {D}\phi |^{q} + \gamma _s (\det \mathcal {D}\phi )^{-s}, \end{aligned}$$
(3.8)
with \(p>n\), \(q>n\), \(s>(n-1)q/(q-n)\), and with \(\alpha _p, \beta _q, \gamma _s >0\) ensuring that the density \(\hat{W}\) attains a local minimum when \(\mathcal {D}\phi ^T \mathcal {D}\phi = {\mathbb {1}}\). As mentioned in the introduction, such an energy is weakly lower semicontinuous in \(W^{1,p}(\Omega ; \mathbb {R}^n)\) when restricted to deformations whose Jacobian determinant is positive almost everywhere, and this condition is closed under weak convergence.
Choosing \(p=q=n+1\), \(s=n^2\) and using that because of its symmetries \(\hat{W}\) can be expressed in terms of singular values [20, Proposition 5.31], elementary but lengthy computations yield the stationarity condition at \({\mathbb {1}}\)
$$\begin{aligned} (n+1)\, n^{\frac{n-1}{2}}\big (\alpha _p + (n-1)\beta _q\big )=n^2 \gamma _s, \end{aligned}$$
and that the corresponding Hessian is positive definite. For \(n=3\) an adequate example is then \(p=q=4\), \(s=9\), \(\alpha _p=1, \beta _q=1\), and \(\gamma _s=4\). For \(n=2\), one can use \(p=q=3\), \(s=4\), \(\alpha _p=\beta _q=2\) and \(\gamma _s=3 \sqrt{2}\). Notice that in this case, \(|\mathcal {D}\phi |=|{\text {Cof}}\,\mathcal {D}\phi |\).

3.4 Total Energy

Summing the above terms, our energy for shape-aware level set matching reads
$$\begin{aligned} E_\nu [\phi ]=E_{\text {match}}[\phi ]+E_{\text {mem}}[\phi ] +E_{\text {bend}}[\phi ]+E_{\text {vol}}[\phi ], \end{aligned}$$
(3.9)
where the different terms depend on the fixed input geometries \(\mathcal {M}_1\) and \(\mathcal {M}_2\) through \(\mathbf{{d}}_1\) and \(\mathbf{{d}}_2\).

4 Existence of Optimal Matching Deformations

First, we prove the following weak continuity lemma, which is a generalization of the classical result given in [50, Theorem 4.1]. Here, the coefficients may depend on the deformed configuration.

Lemma 4.1

Let \(\phi ^k \rightharpoonup \phi \in W^{1,p}(\Omega ; \mathbb {R}^n)\) and \(p>n\). Moreover, let \(V_i \in C^0(\overline{\Omega } \times \mathbb {R}^{n}; \mathbb {S}^{n-1})\), \(i=1,2\) and we denote
$$\begin{aligned} \mathbf{{v}}_i^k(\cdot ):=V_i\big (\cdot , \phi ^k(\cdot )\big ) \text { and } \mathbf{{v}}_i:=V_i\big (\cdot , \phi (\cdot )\big )\,,\quad i=1,2\;. \end{aligned}$$
ThenMoreover, for every symmetric positive definite \(M_i\), \(i=1,2\) with \(M_1^{-\frac{1}{2}} \in C^0(\overline{\Omega } \times \mathbb {R}^{n}; \mathbb {R}^{n \times n})\) and \(M_2^{\frac{1}{2}} \in C^0(\overline{\Omega } \times \mathbb {R}^{n}; \mathbb {R}^{n \times n})\) and the corresponding compositions
$$\begin{aligned} M_i^k(\cdot ):=M_i\big (\cdot , \phi ^k(\cdot )\big ) \text { and } \overline{M}_i:=M_i\big (\cdot , \phi (\cdot )\big ) \end{aligned}$$
we have

Proof

To prove (4.1) let \(\zeta \in L^{\frac{p}{p-n}}(\Omega )\). We show that
$$\begin{aligned} I^k&:=\int _\Omega \zeta \det \big ( \text {P}(\mathbf{{v}}_2^k) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1^k) + \mathbf{{v}}_2^k \otimes \mathbf{{v}}_1^k \big )\,{{\text {d}}}x \\ \rightarrow I&:=\int _\Omega \zeta \det \big ( \text {P}(\mathbf{{v}}_2) \mathcal {D}\phi \, \text {P}(\mathbf{{v}}_1) + \mathbf{{v}}_2 \otimes \mathbf{{v}}_1 \big )\,{{\text {d}}}x. \end{aligned}$$
Moreover, we denote
$$\begin{aligned} \overline{I}^k:=\int _\Omega \zeta \det \big ( \text {P}(\mathbf{{v}}_2) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1) + \mathbf{{v}}_2 \otimes \mathbf{{v}}_1 \big )\,{{\text {d}}}x\;. \end{aligned}$$
Using the inequality (cf. [27, Theorem 4.7])
$$\begin{aligned} |\det A - \det B | \le C |A-B|\max (|A|, |B|)^{n-1} \end{aligned}$$
and Hölder’s inequality it follows that
$$\begin{aligned}&\left| I^k - \overline{I}^k \right| \\&\quad \le C \int _\Omega |\zeta | \left| \text {P}(\mathbf{{v}}_2^k) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1^k) - \text {P}(\mathbf{{v}}_2) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1) + \mathbf{{v}}_2^k \otimes \mathbf{{v}}_1^k - \mathbf{{v}}_2 \otimes \mathbf{{v}}_1 \right| \\&\qquad \cdot \max \bigg (\big |\text {P}(\mathbf{{v}}_2^k) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1^k) + \mathbf{{v}}_2^k \otimes \mathbf{{v}}_1^k\big |, \big |\text {P}(\mathbf{{v}}_2) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1) + \mathbf{{v}}_2 \otimes \mathbf{{v}}_1 \big |\bigg )^{n-1} {{\text {d}}}x\\&\quad \le C \,\Vert \zeta \Vert _{L^\frac{p}{p-n}} \left\| \big |\mathcal {D}\phi ^k\big |^{n-1} + 1 \right\| _{L^{\frac{p}{n-1}}} \\&\qquad \cdot \left\| \text {P}(\mathbf{{v}}_2^k) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1^k) - \text {P}(\mathbf{{v}}_2) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1) + \mathbf{{v}}_2^k \otimes \mathbf{{v}}_1^k - \mathbf{{v}}_2 \otimes \mathbf{{v}}_1 \right\| _{L^p}\\&\quad \le C \, \Vert \zeta \Vert _{L^\frac{p}{p-n}} \Big ( \Vert \mathcal {D}\phi ^k\Vert _{L^p}^{n-1} + 1 \Big ) \\&\qquad \cdot \Big [ \Vert \mathcal {D}\phi ^k\Vert _{L^p} \Big ( \Vert \text {P}(\mathbf{{v}}_2^k)\Vert _{L^\infty }\Vert \text {P}(\mathbf{{v}}_1^k)-\text {P}(\mathbf{{v}}_1)\Vert _{L^\infty } \\&\qquad + \Vert \text {P}(\mathbf{{v}}_1)\Vert _{L^\infty }\Vert \text {P}(\mathbf{{v}}_2^k)-\text {P}(\mathbf{{v}}_2)\Vert _{L^\infty }\Big ) + \Big ( \Vert \mathbf{{v}}_1^k- \mathbf{{v}}_1\Vert _{L^\infty } + \Vert \mathbf{{v}}_2^k- \mathbf{{v}}_2\Vert _{L^\infty } \Big ) \Big ]\,. \end{aligned}$$
Here, we have used that
$$\begin{aligned} \big |\text {P}(\mathbf{{v}}_2) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1) + \mathbf{{v}}_2 \otimes \mathbf{{v}}_1 \big |^{n-1} \le ( \big |\mathcal {D}\phi ^k\big | + 1 )^{n-1} \le C ( \big |\mathcal {D}\phi ^k\big |^{n-1} + 1 )\,. \end{aligned}$$
By the Rellich–Kondrakov embedding theorem ([1], Theorem 6.3 III), there exist subsequences of \(\mathbf{{v}}_i^k\), \(i=1,2\), which for simplicity of notation are again denoted by \(\mathbf{{v}}_i^k\), \(i=1,2\), that converge uniformly to \(\mathbf{{v}}_i\), \(i=1,2\), respectively. Taking into account the Lipschitz continuity estimate
$$\begin{aligned} |\text {P}(e)-\text {P}(f)|=|(e-f)\otimes e + f \otimes (e-f)| \le 2 \sqrt{n}|e - f| \end{aligned}$$
and that \(\mathbf{{v}}_i^k \rightarrow \mathbf{{v}}_i\), \(i=1,2\) in \(L^\infty \) we obtain \(| I^k - \overline{I}^k | \rightarrow 0\) for \(k\rightarrow \infty \).
Next, we replace \(\mathbf{{v}}_i\), \(i=1,2\) in \(\bar{I}^k\) by a piecewise constant approximation on a grid superimposed to the computational domain \(\Omega \). Explicitly, we consider the finitely many nonempty intersection \(\omega _\delta ^z = \delta (z+ [0,1]^n) \cap \Omega \) of cubical cells with \(\Omega \) for \(z \in \mathbb {Z}^n\) and define
$$\begin{aligned} \bar{I}^k_\delta := \sum _{z\in \mathbb {Z}^n} \int _{\omega _\delta ^z} \zeta \det \big ( \text {P}(\mathbf{{v}}_2(z_\delta )) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1(z_\delta )) + \mathbf{{v}}_2(z_\delta ) \otimes \mathbf{{v}}_1(z_\delta ) \big ){{\text {d}}}x\,, \end{aligned}$$
where \(z_\delta \) is any point in \(\bar{\Omega }\cap \omega _\delta ^z\) if this set is nonempty. Using analogous estimates as above, we obtain
$$\begin{aligned}&\left| \overline{I}_\delta ^k - \overline{I}^k \right| \\&\quad \le C \Vert \zeta \Vert _{L^\frac{p}{p-n}} \Big ( \Vert \mathcal {D}\phi ^k\Vert _{L^p}^{n-1} + 1 \Big )\\&\qquad \cdot \Big [ \Vert \mathcal {D}\phi ^k\Vert _{L^p} \Big ( \Vert \text {P}(\mathbf{{v}}_{2,\delta })\Vert _{L^\infty }\Vert \text {P}(\mathbf{{v}}_{1,\delta })-\text {P}(\mathbf{{v}}_1)\Vert _{L^\infty }\\&\qquad +\Vert \text {P}(\mathbf{{v}}_1)\Vert _{L^\infty }\Vert \text {P}(\mathbf{{v}}_{2,\delta })-\text {P}(\mathbf{{v}}_2)\Vert _{L^\infty }\Big ) + \Big ( \Vert \mathbf{{v}}_{2,\delta }- \mathbf{{v}}_2\Vert _{L^\infty } + \Vert \mathbf{{v}}_{1,\delta }- \mathbf{{v}}_1\Vert _{L^\infty } \Big ) \Big ]\,, \end{aligned}$$
where \(\mathbf{{v}}_{1,\delta }\) and \(\mathbf{{v}}_{2,\delta }\) are piecewise constant functions in \(L^\infty \) with \(\mathbf{{v}}_{1,\delta }|_{\omega _\delta ^z} = \mathbf{{v}}_1(z_\delta )\) and \(\mathbf{{v}}_{2,\delta }|_{\omega _\delta ^z} = \mathbf{{v}}_2(z_\delta )\), respectively.
Using the uniform continuity of \(\mathbf{{v}}_2\) and \(\mathbf{{v}}_1\) on \(\overline{\Omega }\), we obtain that \(\left| \overline{I}^k_\delta - \overline{I}^k \right| \le \beta (\delta )\) for a monotonically increasing continuous function \(\beta : \mathbb {R}^+_0 \rightarrow \mathbb {R}\) with \(\beta (0) =0\). In particular, the convergence is uniform with respect to k. The same argument applies for the difference of I and
$$\begin{aligned} \bar{I}_\delta := \sum _{z\in \mathbb {Z}^n} \int _{\omega _\delta ^z} \zeta \det \big ( \text {P}(\mathbf{{v}}_2(z_\delta )) \mathcal {D}\phi \text {P}(\mathbf{{v}}_1(z_\delta )) + \mathbf{{v}}_2(z_\delta ) \otimes \mathbf{{v}}_1(z_\delta ) \big ){{\text {d}}}x \end{aligned}$$
and we get \(\left| \bar{I}_\delta - I \right| <C\beta (\delta )\). Using (2.3) it follows that
$$\begin{aligned} Q(\mathbf{{v}}_{2}(z_\delta ))^T \Big (\text {P}(\mathbf{{v}}_{2}(z_\delta )) A \text {P}(\mathbf{{v}}_{1}(z_\delta )) + \mathbf{{v}}_{2}(z_\delta ) \otimes \mathbf{{v}}_{1}(z_\delta )\Big )Q(\mathbf{{v}}_{1}(z_\delta )) = \left( \begin{array}{c|c} \tilde{A} &{} 0 \\ \hline 0 &{} 1 \end{array} \right) . \end{aligned}$$
Thus \( \det ( \text {P}(\mathbf{{v}}_2(z_\delta )) A \text {P}(\mathbf{{v}}_1(z_\delta )) + \mathbf{{v}}_2(z_\delta ) \otimes \mathbf{{v}}_1(z_\delta )) = \det (\tilde{A})\) represents an \((n-1)\times (n-1)\) minor of the linear mapping corresponding to the matrix A with respect to different orthogonal basis in preimage space (associated with \(\text {P}(\mathbf{{v}}_1(z_\delta ))\) and \(\mathbf{{v}}_1(z_\delta )\)) and the image space (associated with \(\text {P}(\mathbf{{v}}_2(z_\delta ))\) and \(\mathbf{{v}}_2(z_\delta )\)). Indeed, denoting \(Q_i:=Q(\mathbf{{v}}_i(z_\delta ))\) we have
$$\begin{aligned}&\int _{\omega _\delta ^z} \zeta (x) \det \big ( \text {P}(\mathbf{{v}}_2(z_\delta )) \mathcal {D}\phi ^k(x) \text {P}(\mathbf{{v}}_1(z_\delta )) + \mathbf{{v}}_2(z_\delta ) \otimes \mathbf{{v}}_1(z_\delta ) \big ){{\text {d}}}x\,\\&\quad =\int _{\omega _\delta ^z} \zeta (x) \det \big ( Q_2^T \big (\text {P}(\mathbf{{v}}_2(z_\delta )) \mathcal {D}\phi ^k(x) \text {P}(\mathbf{{v}}_1(z_\delta )) + \mathbf{{v}}_2(z_\delta ) \otimes \mathbf{{v}}_1(z_\delta ) \big ) Q_1 \big ){{\text {d}}}x\,\\&\quad =\int _{\omega _\delta ^z} \zeta (x) \det \big ( Q_2^T \text {P}(\mathbf{{v}}_2(z_\delta )) Q_2 Q_2^T \mathcal {D}\phi ^k(x) Q_1 Q_1^T \text {P}(\mathbf{{v}}_1(z_\delta )) Q_1 + e_n \otimes e_n \big ){{\text {d}}}x\,\\&\quad =\int _{\omega _\delta ^z} \zeta (x) \det \big ( \text {P}(e_n) Q_2^T \mathcal {D}\phi ^k(x) Q_1 \text {P}(e_n) + e_n \otimes e_n \big ){{\text {d}}}x\,\\&\quad =\int _{Q_1^T\omega _\delta ^z} \zeta (Q_1y) \det \big ( \text {P}(e_n) \mathcal {D}\big ( Q_2^T \circ \phi ^k \circ Q_1\big ) (y) \text {P}(e_n) + e_n \otimes e_n \big ){{\text {d}}}y\,\\&\quad =\int _{Q_1^T\omega _\delta ^z} \zeta (Q_1y) {{\text {Cof}}}_{nn}\big ( \mathcal {D}\big ( Q_2^T \circ \phi ^k \circ Q_1\big ) (y) \big ){{\text {d}}}y\,, \end{aligned}$$
where we have used the orthogonal change of variables \(y = Q_1^T x\) and \({{\text {Cof}}}_{nn}\) denotes the minor obtained by erasing the last column and the last row. This change of orthogonal coordinates is fixed on each cell \(\omega _\delta ^z\). Since for each \(\delta \) the domain \(\Omega \) is covered by finitely many cells \(\omega _\delta ^z\), using the above computation and standard weak continuity results [20, Theorem 8.20] for determinants of minors of the Jacobian we obtain that \(\bar{I}^k_\delta \rightarrow \bar{I}_\delta \) for \(k\rightarrow \infty \). Finally, for given \(\epsilon \) we first choose \(\delta \) small enough to ensure that \(\left| \bar{I}_\delta - I \right| + \left| \bar{I}^k_\delta - \bar{I}^k \right| \le \tfrac{\epsilon }{2}\). Then, we choose k large enough to ensure that \(\left| I^k - \bar{I}^k \right| + \left| \bar{I}^k_\delta - \bar{I}_\delta \right| \le \tfrac{\epsilon }{2}\). This proves that a subsequence of \(I^k\) converges to I for \(k\rightarrow \infty \). Since the limit does not depend on the subsequence, we finally obtain weak convergence for the whole sequence.
To prove (4.2), consider the three sequences of matrix functions
$$\begin{aligned}&\text {P}(\mathbf{{v}}_2^k) (M_2^k)^{\frac{1}{2}} \text {P}(\mathbf{{v}}_2^k) + \mathbf{{v}}_2^k \otimes \mathbf{{v}}_2^k,\; \text {P}(\mathbf{{v}}_2^k) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1^k) + \mathbf{{v}}_2^k \otimes \mathbf{{v}}_1^k,\nonumber \\&\quad \text { and } \text {P}(\mathbf{{v}}_1^k) (M_1^k)^{-\frac{1}{2}} \text {P}(\mathbf{{v}}_1^k) + \mathbf{{v}}_1^k \otimes \mathbf{{v}}_1^k. \end{aligned}$$
(4.3)
The determinant of the second expression above converges weakly as \(k \rightarrow \infty \) by the first part of the lemma, while the determinants of the first and third can be assumed to converge uniformly. Moreover, the matrices in (4.3) have the block structure shown in (2.3), so multiplying the three together and taking into account that \(\text {P}\) is a projection (depending on the argument) recovers the matrix
$$\begin{aligned} \text {P}(\mathbf{{v}}_2^k) (M_2^k)^{\frac{1}{2}} \text {P}(\mathbf{{v}}_2^k) \mathcal {D}\phi ^k \text {P}(\mathbf{{v}}_1^k) (M_1^k)^{-\frac{1}{2}} \text {P}(\mathbf{{v}}_1^k) + \mathbf{{v}}_2^k \otimes \mathbf{{v}}_1^k \end{aligned}$$
appearing in the statement. Multiplicativity of the determinant and the fact that a product of strongly converging and one weakly converging sequence converges weakly then finishes the proof. \(\square \)

We are now in a position to prove existence of a minimizing deformation for the hypersurface matching energy E in a suitable set of admissible deformations. Of particular difficulty is that derivatives of \(\mathbf{{d}}_2\) are not defined in the whole of \(\Omega \) and that in the functional these derivatives are evaluated at deformed positions. We handle this by ensuring that the involved deformations are such that terms involving these derivatives are not evaluated near the singularities. We obtain the following theorem:

Theorem 4.2

(Existence of minimizing deformations) Let \(\mathcal {M}_1,\mathcal {M}_2\) be \(C^{2,1}\) compact embedded hypersurfaces in \(\mathbb {R}^n\) such that a \(C^1\) diffeomorphism \(\varphi : \mathcal {M}_1 \rightarrow \mathcal {M}_2\) exists between them.

Assume further that
$$\begin{aligned} 0< \sigma < \min ( {\text {dist}}( \mathcal {M}_1, {\text {sing}}\,\mathbf{{d}}_1 ), {\text {dist}}( \mathcal {M}_2, {\text {sing}}\,\mathbf{{d}}_2 ) ), \end{aligned}$$
(4.4)
where \({\text {sing}}\,\mathbf{{d}}_i\) is the set of points where \(\mathbf{{d}}_i\) is not differentiable, and that \({\mathcal {C}}:\mathbb {R}^{n \times n} \rightarrow \text {SPD}(n)\) is continuous. Then there exists a constant \(0 < \nu _0 := \nu _0(\Omega , \mathcal {M}_1, \mathcal {M}_2, \sigma , p, \alpha _p)\) such that for \(0 < \nu \le \nu _0\), the functional \(E_\nu \) has at least one minimizer \(\phi \) among deformations in the space \(W^{1,p}_0(\Omega ; \mathbb {R}^{n})+{\text {id}}\). Moreover, \(\phi \) is a homeomorphism of \(\Omega \) into \(\Omega \), and \(\phi ^{-1}\in W^{1,\theta }(\Omega ; \mathbb {R}^{n})\), where \(\theta \) is given by \(\theta =q(1+s)/(q+s)\).

Proof

We proceed in several steps.

Step 1 Coercivity First, we point out the coercivity enjoyed by our functional. Using the Poincaré and Morrey inequalities ([41], Theorem 12.30 and 11.34), and the Dirichlet boundary conditions we have
$$\begin{aligned} \Vert \phi \Vert _{C^{0,\alpha }(\Omega )} \le C \Vert \phi \Vert _{W^{1,p}(\Omega )} \le C ( 1 + \Vert \mathcal {D}\phi \Vert _{L^p(\Omega )}) \le C (1 + E_\nu [\phi ]^{\frac{1}{p}}), \end{aligned}$$
(4.5)
for any \(\phi \in W^{1,p}_0(\Omega )+{\text {id}}\) and \(\alpha =1-n/p\).
Step 2 Lower semicontinuity along sequences of constrained deformations For the remainder of the proof, a deformation \(\phi \in W^{1,p}_0(\Omega ; \mathbb {R}^n) + {\text {id}}\), \(p>n\) is termed \(\rho \)-admissible for \(\rho > 0 \), if
  • \(E_{\text {vol}}[\phi ]< +\infty \),

  • \(\det \mathcal {D}\phi (x) > 0\) for a.e. \(x \in \Omega \), and

  • for all \(x \in {\text {supp}}\,\big ( \eta _\sigma \circ \mathbf{{d}}_1 \big )\) and every \(y \in {\text {sing}}\,(\mathbf{{d}}_2)\), we have \(\left| \phi (x) - y \right| \ge \rho \).

Notice that since \(p>n\), \(\phi \) has a unique continuous representative, so the third property is well defined.
First, notice that with the assumption (4.4) we have
$$\begin{aligned} {\text {supp}}\,(\eta _\sigma \circ \mathbf{{d}}_i) = \{|\mathbf{{d}}_i|\le \sigma \} \subset \Omega \setminus \overline{{\text {sing}}\,(\mathbf{{d}}_i)}\,,\quad i=1,2. \end{aligned}$$
(4.6)
Let \(\phi ^k\) be a sequence of \(\rho \)-admissible deformations with \(E_{\text {vol}}[\phi ^k]\le C\). By (4.5) and using the Banach–Alaoglu and Rellich–Kondrakov theorems, a subsequence (again denoted by \((\phi ^k)\)) converges to a deformation \(\phi \), both in the \(W^{1,p}\)-weak and uniform topologies.
Now, we have ([20, Theorem 8.20])
$$\begin{aligned} (\det \mathcal {D}\phi ^k, {\text {Cof}}\,\mathcal {D}\phi ^k) \rightharpoonup (\det \mathcal {D}\phi , {\text {Cof}}\,\mathcal {D}\phi ) \text { in } L^{\frac{p}{n}}(\Omega ) \times \left( L^{\frac{p}{n-1}}(\Omega )\right) ^{n^2}. \end{aligned}$$
(4.7)
Additionally, since (4.7) holds and because \(E_\nu [\phi _k]\) is bounded, \(\int _\Omega (\det \mathcal {D}\phi _k)^{-s} d x\) is bounded by the definition of \(\hat{W}\) and \(\det \mathcal {D}\phi _k \ge 0\) a.e. Together with (4.7), we have
$$\begin{aligned} \det \mathcal {D}\phi (x) > 0 \text { a.e.,} \end{aligned}$$
(4.8)
so that \(\phi \) is again \(\rho \)-admissible.
Notice also that by a.e. positivity of the determinants, (4.7) and a standard lower semicontinuity result for convex integrands (see, e.g., [20, Theorem 3.23]) implies
$$\begin{aligned} E_{\text {vol}}[\phi ] \le \liminf _{k \rightarrow \infty } E_{\text {vol}}[\phi ^k], \end{aligned}$$
and uniform convergence of \(\phi ^k\) immediately leads to
$$\begin{aligned} E_{\text {match}}[\phi ] = \lim _{k \rightarrow \infty } E_{\text {match}}[\phi ^k]. \end{aligned}$$
We claim that under the assumptions of this theorem, we also have that
$$\begin{aligned} E_{\text {mem}}\left[ \,\phi \,\right] \le \liminf _{k \rightarrow \infty } E_{\text {mem}}[\phi ^k] \end{aligned}$$
(4.9)
and
$$\begin{aligned} E_{\text {bend}}\left[ \,\phi \,\right] \le \liminf _{k \rightarrow \infty } E_{\text {bend}}[\phi ^k]. \end{aligned}$$
(4.10)
To see this, notice that \(\phi ^k, \phi \) being \(\rho \)-admissible ensures that the normal vectors satisfy
$$\begin{aligned} \mathbf{{n}}_1,\, \mathbf{{n}}_2 \circ \phi ^k,\, \mathbf{{n}}_2 \circ \phi \in C^{0}( \{|\mathbf{{d}}_1|\le \sigma \}; \mathbb {R}^{n}). \end{aligned}$$
Consequently, the first part of Lemma 4.1 (with \(V_i=\mathbf{{n}}_i\)) implies
$$\begin{aligned} \begin{aligned}&\chi _{\{|\mathbf{{d}}_1|\le \sigma \}}\Big ( \mathcal {D}_{\text {tg}}\phi ^k, \det \big (\mathcal {D}_{\text {tg}}\phi ^k + (\mathbf{{n}}_2\circ \phi ^k) \otimes \mathbf{{n}}_1\big )\Big ) \\&\rightharpoonup \chi _{\{|\mathbf{{d}}_1|\le \sigma \}}\Big ( \mathcal {D}_{\text {tg}}\phi , \det \big (\mathcal {D}_{\text {tg}}\phi + (\mathbf{{n}}_2\circ \phi ) \otimes \mathbf{{n}}_1\big )\Big )\text { in } \left( L^p(\Omega ) \right) ^{n^2} \times L^{\frac{p}{n}}(\Omega ), \end{aligned} \end{aligned}$$
(4.11)
with \(\chi _{\{|\mathbf{{d}}_1|\le \sigma \}}\) denoting the indicator function. Combining (4.11) with the polyconvexity of W, defining the function \(E_{\text {mem}}\), both introduced in (3.1) we find the assertion (4.9).
Furthermore, by our assumptions on \(\mathcal {M}_i\) (see Sect. 2), we have that
$$\begin{aligned} \chi _{\{|\mathbf{{d}}_i|\le \sigma \}}{\mathcal {S}}_i = \chi _{\{|\mathbf{{d}}_i|\le \sigma \}}\mathcal {D}^2 \mathbf{{d}}_i \in C^0( \overline{\Omega }; \mathbb {R}^{n \times n}). \end{aligned}$$
Since \({\mathcal {C}}\) produces uniformly positive matrices, we have \(\chi _{\{|\mathbf{{d}}_1|\le \sigma \}}({\mathcal {C}}({\mathcal {S}}^{ext}_1))^{-1}\in C^0(\overline{\Omega }; \mathbb {R}^{n \times n})\). We can then use a continuity result for square roots of nonnegative definite matrix-valued functions defined on \(\Omega \) [15, Theorem 1.1] to see that
$$\begin{aligned} \chi _{\{|\mathbf{{d}}_1|\le \sigma \}}({\mathcal {C}}({\mathcal {S}}^{ext}_1))^{-\frac{1}{2}}\in & {} C^0(\overline{\Omega }; \mathbb {R}^{n \times n}),\\ \chi _{\{|\mathbf{{d}}_1|\le \sigma \}}( {\mathcal {C}}({\mathcal {S}}^{ext}_2) \circ \phi ^k )^{\frac{1}{2}}\in & {} C^0(\overline{\Omega }; \mathbb {R}^{n \times n}),\\ \chi _{\{|\mathbf{{d}}_1|\le \sigma \}}({\mathcal {C}}({\mathcal {S}}^{ext}_2) \circ \phi )^{\frac{1}{2}}\in & {} C^0(\overline{\Omega }; \mathbb {R}^{n \times n}). \end{aligned}$$
The second part of Lemma 4.1 implies the weak convergencefrom which (4.10) follows by using the polyconvexity of W.

Step 3 Existence of minimizers restricted to admissible deformations Since we have already seen that the set of \(\rho \)-admissible deformations is weakly closed and weakly compact, and that every term of E is weakly lower semicontinuous on this set, we just need to check that for all fixed \(\nu > 0\), the set of \(\rho \)-admissible deformations, with adequate \(\rho \), is not empty.

For some given \(\sigma \) satisfying \({\text {dist}}( \mathcal {M}_2, {\text {sing}}\,\mathbf{{d}}_2 ) - \sigma > 0\) let \(\rho \) satisfy
$$\begin{aligned} 0< \rho < {\text {dist}}( \mathcal {M}_2, {\text {sing}}\,\mathbf{{d}}_2 ) - \sigma \;. \end{aligned}$$
(4.12)
We construct a deformation \(\hat{\varphi }\), which is \(\rho \)-admissible and satisfies \(E_\nu [\hat{\varphi }] < \infty \). By assumption, there exists a diffeomorphism \(\varphi :\mathcal {M}_1\rightarrow \mathcal {M}_2\). Thus, we construct an extension of this diffeomorphism to \(\{|\mathbf{{d}}_1|\le \sigma \}\) along the normal directions using
$$\begin{aligned} \hat{\varphi }( x+s\mathbf{{n}}_1(x) ):=\varphi (x)+s \mathbf{{n}}_2(\varphi (x)), \text { for }x \in \mathcal {M}_1, -\sigma \le s \le \sigma . \end{aligned}$$
(4.13)
We can then extend \(\hat{\varphi }\) to the inside and outside components \(\Omega _i, \Omega _o\) of \(\Omega \setminus \{|\mathbf{{d}}_1|\le \sigma \}\) by solving the minimization problems for \(E_{{\text {vol}}}\) with Dirichlet boundary conditions given by (4.13) on \(\partial \Omega _i\) and \(\partial \Omega _o \setminus \partial \Omega \), and by \(\hat{\varphi }(x)=x\) on \(\partial \Omega \). For the resulting \(\hat{\varphi }\), we have
$$\begin{aligned} E_{\text {match}}[\hat{\varphi }]=0,\, E_{\text {vol}}[\hat{\varphi }]<\infty ,\, E_{\text {mem}}[\hat{\varphi }]<\infty ,\, E_{\text {bend}}[\hat{\varphi }]<\infty , \end{aligned}$$
where the first two statements follow by construction, and the last two by virtue of \(\varphi \) being a diffeomorphism and the choice of \(\sigma \). Moreover, we note that since \(\hat{\varphi }\) has finite energy and the growth conditions assumed for \(\hat{W}\) [see (3.7)], the condition \(\det \mathcal {D}\hat{\varphi }(x) > 0\) for a.e. x is also satisfied [4].

Step 4 A priori estimate to remove the constraint Next, we show that for any \(\rho \) satisfying (4.12) there exists a parameter \(\nu _0 > 0\) such that for all \(0< \nu < \nu _0\) the constrained minimizers of \(E_\nu \) subject to (4.4) solves the unconstrained optimization problem, consisting in minimizing \(E_\nu \) on \(W_0^{1,p}+{\text {id}}\).

To this end, we verify that every \(\phi \) that satisfies
$$\begin{aligned} E_\nu [ \phi ] \le E_\nu [ \hat{\varphi }] \end{aligned}$$
(4.14)
is \(\rho \)-admissible. It is immediate from (4.14) that \(E_{\text {vol}}(\phi ) < + \infty \), and from the definition of \(\hat{W}\) in (3.7) it follows with the same arguments as in (4.8) that \(\det \phi > 0\) a.e.
We prove now that for all deformations \(\phi \) satisfying (4.14) also satisfy
$$\begin{aligned} \Vert \mathbf{{d}}_2 \circ \phi \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})} \le {\text {dist}}(\mathcal {M}_2,{\text {sing}}\,\mathbf{{d}}_2) - \rho \;. \end{aligned}$$
(4.15)
This is sufficient because from (4.15) it follows for all x satisfying \(|\mathbf{{d}}_1(x)| \le \sigma \) by the triangle inequality that
$$\begin{aligned} \begin{aligned} \rho&\le {\text {dist}}(\mathcal {M}_2,{\text {sing}}\,\mathbf{{d}}_2) - \Vert \mathbf{{d}}_2 \circ \phi \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})}\\&= {\text {dist}}(\mathcal {M}_2,{\text {sing}}\,\mathbf{{d}}_2) - {\text {dist}}(\phi (x),\mathcal {M}_2) \\&\le {\text {dist}}(\phi (x),{\text {sing}}\,\mathbf{{d}}_2), \end{aligned} \end{aligned}$$
which is the third property of a \(\rho \)-admissible deformation \(\phi \).
To prove (4.15), we use the triangle inequality and estimate
$$\begin{aligned} \Vert \mathbf{{d}}_2 \circ \phi \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})} \le \sigma + \Vert \mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1 \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})}. \end{aligned}$$
(4.16)
By the monotonicity of \(\eta _\sigma \) and the fact that the signed distance functions \(\mathbf{{d}}_i\) are Lipschitz continuous with constant 1 we have, for each \(\hat{\sigma } \in (0, \sigma )\) that
$$\begin{aligned} \begin{aligned}&\Vert \mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1 \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})} \\&\quad \le \left( 1 + \Vert \phi \Vert _{C^{0,\alpha }(\{\sigma - \hat{\sigma } \le |\mathbf{{d}}_1| \le \sigma \})}\right) \hat{\sigma }^\alpha \\&\qquad + \frac{ \Vert \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) \Vert _{L^\infty ( \{ |\mathbf{{d}}_1| < \sigma -\hat{\sigma }\} )}}{\eta _\sigma (\sigma - \hat{\sigma } )}. \end{aligned} \end{aligned}$$
(4.17)
Estimates (4.5) and (4.14) imply in turn
$$\begin{aligned} \Vert \phi \Vert _{C^{0,\alpha }(\{\sigma - \hat{\sigma } \le |\mathbf{{d}}_1| \le \sigma \})} \le C \Vert \phi \Vert _{W^{1,p}(\Omega )} \le C (1+E_\nu [\hat{\varphi }]^{\frac{1}{p}}). \end{aligned}$$
(4.18)
Finally, combining (4.16), (4.17), and (4.18) we obtain
$$\begin{aligned} \begin{aligned}&\Vert \mathbf{{d}}_2 \circ \phi \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})} \\&\quad \le \sigma + \left( 1 + C ( 1 + E_\nu [\hat{\varphi }]^{\frac{1}{p}} ) \right) \hat{\sigma }^\alpha \\&\qquad + \frac{1}{\eta _\sigma (\sigma - \hat{\sigma } )} \Vert \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) \Vert _{L^\infty ( \{ |\mathbf{{d}}_1| < \sigma -\hat{\sigma }\} )}. \end{aligned} \end{aligned}$$
(4.19)
Now we can apply Ehrling’s lemma [54, Theorem 7.30] for the embeddings \( W^{1,p}(\Omega ) \subset \subset L^\infty (\Omega ) \subset L^2(\Omega )\) to control the last term in (4.19). Taking into account, the Poincaré inequality and Dirichlet boundary conditions, we obtain for any \(\epsilon > 0\) a constant \(C(\epsilon ) > 0\) such that
$$\begin{aligned} \begin{aligned}&\Vert \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) \Vert _{L^\infty ( \{ |\mathbf{{d}}_1| < \sigma -\hat{\sigma }\} )} \\&\quad \le \Vert \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) \Vert _{L^\infty ( \Omega )} \\&\quad \le C(\epsilon )\Vert \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) \Vert _{L^2( \Omega )}\\&\qquad + \epsilon \, C \left( \Vert \nabla ( \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) )\Vert _{L^p( \Omega )}+1\right) . \end{aligned} \end{aligned}$$
(4.20)
Now, for the first term in the right-hand side of (4.20) we can estimate
$$\begin{aligned} \Vert \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) \Vert _{L^2( \Omega )} = \nu ^{\frac{1}{2}} E_{\text {match}}[\phi ]^{\frac{1}{2}} \le \nu ^{\frac{1}{2}} E_\nu [\hat{\varphi }]^{\frac{1}{2}}. \end{aligned}$$
(4.21)
For the second term, denoting \({\text {diam}}\,\Omega = \sup _{x,y \in \Omega }|x-y|\),
$$\begin{aligned} \begin{aligned}&\Vert \nabla ( \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) )\Vert _{L^p( \Omega )} \\&\quad \le \Vert \nabla ( \eta _\sigma \circ \mathbf{{d}}_1 ) ( \mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1 ) \Vert _{L^p(\Omega )} \\&\qquad + \Vert ( \eta _\sigma \circ \mathbf{{d}}_1 ) \nabla ( \mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1 ) \Vert _{L^p(\Omega )} + 1 \\&\quad \le C \nu ^{\frac{1}{p}} \left( \Vert \mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1 \Vert ^{\frac{p-2}{p}}_{L^\infty ( \Omega )} E_{\text {match}}[\phi ]^{\frac{1}{p}}\right) \\&\qquad + C \Big ( \Vert \mathcal {D}\phi \Vert _{L^p(\Omega )} + \Vert \nabla \mathbf{{d}}_1 \Vert _{L^{p}(\Omega )} + 1 \Big ) \\&\quad \le C \nu ^{\frac{1}{p}} \left( ( \Vert \phi \Vert _{C^{0,\alpha }(\Omega )} + 2 {\text {diam}}\,\Omega )^{\frac{p-2}{p}}E_\nu [\hat{\varphi }]^{\frac{1}{p}} \right) + C \left( E_\nu [\hat{\varphi }]^{\frac{1}{p}} + 1 \right) \\&\quad \le C \nu ^{\frac{1}{p}} \left( ( 1 + E_\nu [\hat{\varphi }]^{\frac{1}{p}} )^{\frac{p-2}{p}} E_\nu [\hat{\varphi }]^{\frac{1}{p}}\right) + C \left( E_\nu [\hat{\varphi }]^{\frac{1}{p}} + 1\right) , \end{aligned} \end{aligned}$$
(4.22)
where we have applied the product rule, the definition of \(E_{\text {match}}\), \(\eta _\sigma \in C^\infty _0\), \(\eta _\sigma \le C\), that \(| \nabla \mathbf{{d}}_i | = 1\) a.e., \(i=1,2\), the chain rule, and (4.14). The use of the chain rule is justified by [46, Theorem 2.2], since \(\mathbf{{d}}_2\) has Lipschitz constant 1.
Together, (4.20), (4.21), and (4.22) imply
$$\begin{aligned} \begin{aligned}&\Vert \eta _\sigma \circ \mathbf{{d}}_1 (\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1) \Vert _{L^\infty ( \{ |\mathbf{{d}}_1| < \sigma -\hat{\sigma }\} )} \\&\quad \le \nu ^{\frac{1}{p}} \left( C(\epsilon ) \nu ^{\frac{1}{2}-\frac{1}{p}} E_\nu [\hat{\varphi }]^{\frac{1}{2}} + \epsilon \, C ( 1 + E_\nu [\hat{\varphi }]^{\frac{1}{p}} )^{\frac{p-2}{p}} E_\nu [\hat{\varphi }]^{\frac{1}{p}}\right) \\&\qquad + \epsilon \, C \left( E_\nu [\hat{\varphi }]^{\frac{1}{p}} + 1\right) . \end{aligned} \end{aligned}$$
(4.23)
In light of (4.19) and (4.23), and since \(E_\nu [\hat{\varphi }]\) is independent of \(\nu \), we can now choose first \(\hat{\sigma }\), then \(\epsilon \) and finally \(\nu \) small enough to obtain
$$\begin{aligned} \Vert \mathbf{{d}}_2 \circ \phi \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})}&\le \sigma + ( {\text {dist}}( \mathcal {M}_2, {\text {sing}}\,\mathbf{{d}}_2 ) - \sigma - \rho ) \\&\le {\text {dist}}( \mathcal {M}_2, {\text {sing}}\,\mathbf{{d}}_2 ) - \rho \;. \end{aligned}$$
Step 5 Injectivity The injectivity and regularity of the inverse follow by the growth conditions satisfied by \(E_\text {vol}\) and classical results of Ball [4, Theorems 2 and 3]. Note that Theorem 3 in [4] is stated in the mechanical application context in dimension \(n=3\), but it holds also in \(\mathbb {R}^n\) following the same proof and using the condition \(s>(n-1)q/(q-n)\). \(\square \)

We have particularized the statement of Theorem 4.2 to the case of Dirichlet boundary conditions to ensure global invertibility. In fact, we also have existence of minimizing deformations for the case of Neumann boundary conditions.

Corollary 4.3

(Natural boundary conditions) Under the assumptions of Theorem 4.2, there exists a constant
$$\begin{aligned} 0 < \nu _N = \nu _N(\Omega , \mathcal {M}_1, \mathcal {M}_2, \sigma , p, \alpha _p) \end{aligned}$$
such that for \(0 < \nu \le \nu _N\), the functional \(E_\nu \) possesses at least one minimizer among deformations in the space \(W^{1,p}(\Omega ; \mathbb {R}^{n})\).

Proof

The proof follows the same arguments used for Theorem 4.2, so we only point out the necessary modifications. We need a replacement for the coercivity estimate (4.5) and claim
$$\begin{aligned} \begin{aligned} \Vert \phi \Vert _{W^{1,p}(\Omega )}&\le C(1 + \nu ^{\frac{1}{2}} E_{\text {match}}[\phi ]^{\frac{1}{2}} + \Vert \mathcal {D}\phi \Vert _{L^p(\Omega )}) \\&\le C (1 + \nu ^{\frac{1}{2}} E_\nu [\phi ]^{\frac{1}{2}}+ E_\nu [\phi ]^{\frac{1}{p}} ). \end{aligned} \end{aligned}$$
(4.24)
To verify this let us consider \(\omega :=\{|\mathbf{{d}}_1| \le \sigma /2 \}\). An adequate Poincaré inequality (see, e.g., [41, Theorem 12.23]) implies that
$$\begin{aligned} \Vert \phi \Vert _{W^{1,p}(\Omega )} \le C \left( \Vert \mathcal {D}\phi \Vert _{L^p(\Omega )}+\left| \int _\omega \phi \,{{\text {d}}}x \right| \,\right) , \end{aligned}$$
and we estimate the second term in the right-hand side by
$$\begin{aligned} \begin{aligned} \left| \int _\omega \phi \,{{\text {d}}}x \right|&\le \int _\omega | \phi | \,{{\text {d}}}x \le \int _\omega | \mathbf{{d}}_2 \circ \phi | \,{{\text {d}}}x + |\omega |\sup _{x \in \mathcal {M}_2}|x| \\&\quad \le \int _\omega | \mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1 | \,{{\text {d}}}x + \int _\omega |\mathbf{{d}}_1| \,{{\text {d}}}x + |\omega |\sup _{x \in \mathcal {M}_2}|x| \\&\quad \le \eta _\sigma \left( \frac{\sigma }{2}\right) ^{-1} |\omega |^{-\frac{1}{2}} \left( \nu E_{\text {match}}[\phi ]\right) ^{\frac{1}{2}} + \int _\omega |\mathbf{{d}}_1| \,{{\text {d}}}x + |\omega |\sup _{x \in \mathcal {M}_2}|x|, \end{aligned} \end{aligned}$$
where Hölder’s inequality has been used to compare \(L^1\) and \(L^2\) norms. Therefore, (4.24) follows.

The proof of the estimate for \(\Vert \mathbf{{d}}_2 \circ \phi \Vert _{L^\infty (\{|\mathbf{{d}}_1| \le \sigma \})}\) (to ensure that deformations stay away from the singularities of \(\mathbf{{d}}_2\)) is still valid with minor modifications, since \(\nu \) appears in (4.24) multiplicatively. \(\square \)

We conclude this section with the following proposition, which explores the penalization limit in which the parameter \(\nu \) tends to zero.

Proposition 4.4

Let \(\{\nu _k\}_{k \in \mathbb {N}}\), be a sequence of penalty matching parameters such that \(\nu _k \rightarrow 0\) as \(k \rightarrow \infty \), and \(\phi ^k\) be solutions of the Dirichlet minimization problem for \(E_{\nu _k}\). Then, up to a choice of subsequence, the \(\phi ^k\) converge strongly in \(W^{1,p}\) to a minimizer of
$$\begin{aligned} E_{\mathrm{mem}}+E_{\mathrm{bend}}+E_{\mathrm{vol}} \end{aligned}$$
in \(W_0^{1,p}(\Omega ;\mathbb {R}^n)+{\mathbb {1}}\) under the constraint \(\phi (\mathcal {M}_1^{c}) = \mathcal {M}_2^{c}\) for all \(c \in (-\sigma , \sigma )\).

Proof

First, notice that the energy E may be written as
$$\begin{aligned} \begin{aligned} E_\nu [\phi ]&= \frac{1}{\nu }\int _\Omega \eta _\sigma \circ \mathbf{{d}}_1 |\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1|^2 + \alpha _p |\mathcal {D}\phi |^p\\&\quad \, +H\Big (\det \mathcal {D}\phi , {{\text {Cof}}}\mathcal {D}\phi , \mathcal {D}_{\text {tg}}\phi , \det ( \mathcal {D}_{\text {tg}}\phi + \mathbf{{n}}_2 \circ \phi \otimes \mathbf{{n}}_1) , \\&\quad \quad \Lambda ({\mathcal {C}}({\mathcal {S}}^{ext}_1), {\mathcal {C}}({\mathcal {S}}^{ext}_2 \circ \phi )) ,\mathcal {D}\phi ),\\&\quad \quad \det \big ( \Lambda ({\mathcal {C}}({\mathcal {S}}^{ext}_1),{\mathcal {C}} ({\mathcal {S}}^{ext}_2 \circ \phi )), \mathcal {D}\phi \big ) \Big )\,{{\text {d}}}x, \end{aligned} \end{aligned}$$
(4.25)
where \(H:\mathbb {R}^+ \times \mathbb {R}^{n \times n} \times \mathbb {R}^{n \times n} \times \mathbb {R}\times \mathbb {R}^{n \times n} \times \mathbb {R}\rightarrow \mathbb {R}^+\) is smooth and convex.
Denote by \(\hat{\varphi }\) the extension of a diffeomorphism between \(\mathcal {M}_1\) and \(\mathcal {M}_2\) used in the proof of Theorem 4.2. Since \(E_{\text {match}}[\hat{\varphi }]=0\), we have that \(E_{\nu _k}[\phi ^k] \le E_1[\hat{\varphi }]\). By the coercivity estimate (4.5), the \(\phi ^k\) are then bounded in \(W^{1,p}\) and we may extract a (not relabeled) subsequence converging uniformly and weakly in \(W^{1,p}\) to some limit \(\phi \). Since \(\{E_{\nu _k}[\phi ^k]\}\) is bounded and \(\nu _k \rightarrow 0\), the uniform convergence of \(\phi ^k\) implies that
$$\begin{aligned} \int _\Omega \eta _\sigma (\mathbf{{d}}_1)|\mathbf{{d}}_2 \circ \phi ^k - \mathbf{{d}}_1|^2 \,{{\text {d}}}x \xrightarrow [k \rightarrow \infty ]{} \int _\Omega \eta _\sigma (\mathbf{{d}}_1)|\mathbf{{d}}_2 \circ \phi - \mathbf{{d}}_1|^2 \,{{\text {d}}}x = 0. \end{aligned}$$
(4.26)
In consequence, \(\phi (\mathcal {M}_1^c)\subseteq \mathcal {M}_2^c\). Since \({ \left. \phi \phantom {\big |} \right| _{\mathcal {M}_1^c} }\) is the uniform limit of the maps \({ \left. \phi ^k \phantom {\big |} \right| _{\mathcal {M}_1^c} }\) which are surjective onto \(\mathcal {M}_2^c\) and \(\mathcal {M}_1^c\) is compact, we conclude that \(\phi (\mathcal {M}_1^c)=\mathcal {M}_2^c\) for all \(c \in (-\sigma , \sigma )\). Therefore, \(\phi \) is admissible for all \(\nu _k\) and \(E_{\nu _k}[\phi ^k] \le E_{1}[\phi ]\). Combined with lower semicontinuity and (4.25), the above implies
$$\begin{aligned} \begin{aligned}&\int _\Omega \alpha _p |\mathcal {D}\phi ^k|^p + H(\det (\mathcal {D}\phi ^k), \ldots ) \,{{\text {d}}}x \\&\quad \xrightarrow [k \rightarrow \infty ]{} \int _\Omega \alpha _p |\mathcal {D}\phi |^p + H(\det (\mathcal {D}\phi ), \ldots ) \,{{\text {d}}}x. \end{aligned} \end{aligned}$$
(4.27)
From this identity, the fact that H is convex and differentiable, and \(\mathcal {D}\phi ^k \rightharpoonup \mathcal {D}\phi \) in \(L^p\) it follows that
$$\begin{aligned} \begin{aligned} 0=&\limsup _{k \rightarrow \infty } \bigg ( \int _\Omega \alpha _p \left( |\mathcal {D}\phi ^k|^p - |\mathcal {D}\phi |^p \right) \\&+ \big ( H(\det (\mathcal {D}\phi ^k), \ldots ) - H(\det (\mathcal {D}\phi ), \ldots ) \big ) \,{{\text {d}}}x \bigg ) \\ \ge&\limsup _{k \rightarrow \infty } \bigg ( \int _\Omega \alpha _p \left( |\mathcal {D}\phi ^k|^p - |\mathcal {D}\phi |^p \right) \\&+ \mathcal {D}H(\det (\mathcal {D}\phi ), \ldots ) \cdot \big (\det (\mathcal {D}\phi ^k) - \det (\mathcal {D}\phi ), \ldots \big ) \,{{\text {d}}}x\bigg )\\ =&\limsup _{k \rightarrow \infty } \int _\Omega \alpha _p |\mathcal {D}\phi ^k|^p {{\text {d}}}x - \int _\Omega \alpha _p |\mathcal {D}\phi |^p \,{{\text {d}}}x\;. \end{aligned} \end{aligned}$$
Together with the weak lower semicontinuity of the \(L^p\)-norm, the above shows that
$$\begin{aligned} \int _\Omega \alpha _p |\mathcal {D}\phi |^p \,{{\text {d}}}x = \lim _{k \rightarrow \infty } \int _\Omega \alpha _p |\mathcal {D}\phi ^k|^p {{\text {d}}}x\;. \end{aligned}$$
Because \(L^p(\Omega )\) has the Radon-Riesz property ([47, 2.5.26]), weak convergence and convergence of the norm guarantee strong convergence. Since \(\phi _k\) was assumed to converge uniformly, we have also \(\phi _k \rightarrow \phi \) in \(L^p\), and this shows that \(\phi _k \rightarrow \phi \) in \(W^{1,p}(\Omega ; \mathbb {R}^{n})\).

That \(\phi \) is a minimizer of the constrained problem follows directly ([8], Theorem 1.21) from the fact that the \(E_{\nu _k}\) are an equicoercive family of functionals, \(\Gamma \)-converging in the weak topology of \(W^{1,p}\). Indeed, equicoercivity follows easily from the above, while \(\Gamma \)-convergence is implied by the fact that \(E_{\nu _k}\) is an increasing sequence ([8], Remark 1.40), because \(\nu _k \rightarrow 0\) appears as a denominator in \(E_{\text {match}}\). \(\square \)

Remark 4.5

By the coercivity estimate (4.24) of Corollary 4.3, an entirely analogous result holds for minimizers with Neumann boundary conditions.

Remark 4.6

Contrary to what might be expected, the limit problem we have obtained is not a surface problem, since all the level sets are still coupled through the volume energy \(E_{\text {vol}}\). The line of reasoning above depends heavily on the fact that the coefficients of the volume term are held fixed, since the equicoercivity and uniform strict quasiconvexity (in the language of [25]) both require the presence of \(\Vert \mathcal {D}\phi \Vert ^p_{L^p(\Omega )}\) in the functional.

4.1 Oscillations and Lack of Rank-One Convexity for the Naive Approach

To model the tangential distortion energy we have considered a frame indifferent energy density with the argument \(\mathcal {D}_{\text {tg}}\phi +(\mathbf{{n}}_2 \circ \phi ) \otimes \mathbf{{n}}_1\). Let us now consider the case \(n=2\) and a simpler version of the membrane energy (3.6), where we use as an argument of the energy density directly the tangential Cauchy–Green strain tensor [cf (2.2)] \(({{{\tilde{\mathcal {D}}}}}_{tg}\phi (x))^T ({{{\tilde{\mathcal {D}}}}}_{tg}\phi (x)) + \mathbf{{n}}_1(x) \otimes \mathbf{{n}}_1(x)\), and define the membrane energy
$$\begin{aligned} {\tilde{E}}_\text {mem}[\phi ]:=\int _{\Omega } \eta _\sigma (\mathbf{{d}}_1(x)) W \left( \big ({{{\tilde{\mathcal {D}}}}}_{tg}\phi (x)\big )^T {{{\tilde{\mathcal {D}}}}}_{tg}\phi (x) + \mathbf{{n}}_1(x) \otimes \mathbf{{n}}_1(x) \right) {{\text {d}}}x, \end{aligned}$$
(4.28)
with \({{{\tilde{\mathcal {D}}}}}_{tg}\phi := \mathcal {D}\phi \text {P}_1\) defined as the tangential part of the derivative along \(T_x \mathcal {M}_1^{\mathbf{{d}}_1(x)}\), and \(W:\mathbb {R}^{2 \times 2}\rightarrow \mathbb {R}\) a frame indifferent energy density that has a strict minimum at \(\text {SO}(2)\). In fact, this energy is no longer lower semicontinuous and we will present counterexamples.

Example 4.7

(Oscillation patterns) We construct an explicit sequence for which lower semicontinuity of the membrane energy \({\tilde{E}}_\text {mem}\) fails. Fix \(0<R<1\) and \(\mathcal {M}_1 = \mathbb {S}^1\) with the parametrization \(\xi \rightarrow e^{i \xi }\). Consider a sequence of deformations \(\varphi _k: \mathbb {S}^1 \rightarrow \mathbb {R}^2\) defined in polar coordinates of \((r, \theta )\) by the condition
$$\begin{aligned} \begin{aligned} \partial _\xi \varphi _k(\xi ) =&\left( R \sin k\xi \right) e_r\big ( r(\varphi _k( \xi ) ), \theta (\varphi _k( \xi ) ) \big )\\&+ \left( 1-R^2 \sin ^2 k \xi \right) ^{\frac{1}{2}} e_\theta \big (r(\varphi _k( \xi )), \theta (\varphi _k( \xi ) ) \big ), \end{aligned} \end{aligned}$$
(4.29)
where \(e_r=(\cos \theta , \sin \theta )^T, e_\theta =(-\sin \theta , \cos \theta )^T\) for given \(\phi _k(0)\). Note that for any k and \(\theta \) that \(|\partial _\theta \varphi _k(\theta )|=1\), so that the transformations are tangentially isometric. We define \(\varphi _k(0)\) via two integration constants \(r_0\) and \(\theta _0\) for the initialization of r and \(\theta \) at \(\xi =0\). We set \(\theta _0=0\) and choose \(r_0\) such that the curve \(\varphi _k\) is closed and simple, which imposes \(r_0=r(\varphi _k(0))=r(\varphi _k(2\pi ))\) since the first term in (4.29) has zero average. From the second term, taking into account that \(e_\theta (r, \theta )\) is independent of r, we get the condition
$$\begin{aligned} 2 \pi r_0 = \int _0^{2\pi }\left( 1-R^2 \sin ^2 k \xi \right) ^{\frac{1}{2}} {{\text {d}}}\xi =\frac{1}{k} \int _0^{2\pi k}\left( 1-R^2 \sin ^2 \zeta \right) ^{\frac{1}{2}} {{\text {d}}}\zeta , \end{aligned}$$
where we have applied the change of variables \(\zeta = k \xi \). By periodicity the right-hand side (an incomplete elliptic integral of the second kind with modulus R) is independent of k and thus determines \(r_0\). The resulting \(\varphi _k\) for several values of k are depicted in Fig. 3.
We observe that \(\partial _\theta \varphi _k(\theta ) \rightharpoonup r_0 e_\theta \text { in }L^p,\) for any \(1 \le p < \infty \) (and also weak-* in \(L^\infty \)). Therefore, the weak \(W^{1,p}\)-limit \(\varphi \) of the \(\varphi _k\) is the function defined by \(\varphi (\theta )=r_0 e_r\) and obviously not an isometry. Assuming \(0< \sigma < 1\) and extending \(\varphi _k, \varphi \) along the radial direction \(e_r\) to the annulus \(\{1-\sigma \le r \le 1+\sigma \}\), we obtain corresponding deformations given by
$$\begin{aligned} \phi ^k(r,\theta )&=\varphi _k(\theta )+(r-1)Q_{\frac{\pi }{2}}\partial _\theta \varphi _k(\theta ) \text { and }\\ \phi (r,\theta )&=\varphi (\theta )+(r-1)r_0 e_r=r \, r_0 e_r, \end{aligned}$$
where \(Q_{\frac{\pi }{2}}\) stands for clockwise rotation by \(\pi /2\), so that \(Q_{\frac{\pi }{2}}\partial _\theta \varphi _k(\theta )\) is the unit outward normal to \(\varphi _k(\mathbb {S}^1)\). Clearly also \(\phi ^k \rightharpoonup \phi \) in \(W^{1,p}\) on the annulus. We observe that \({\tilde{E}}_{\text {mem}}[\phi ^k]=0\), but \({\tilde{E}}_{\text {mem}}[\phi ]>0\). Hence, \({\tilde{E}}_\text {mem}\) is not weakly lower semicontinuous.
Fig. 3

Explicit oscillations for a simplified model. \(\varphi _k\) for \(R=0.95\), \(k=6,20,50\)

The celebrated Nash–Kuiper theorem [37, 51] states that it is possible to uniformly approximate any short \(C^\infty \) immersion by \(C^1\) isometric ones. Our explicit oscillations around \(r_0 \mathbb {S}^1\) is just one example of this phenomenon. Notice that a bending term of the type \(E_{\text {bend}}\) introduced in our model only compares the curvatures of \(\mathcal {M}_1^{\mathbf{{d}}_1(x)}\) and \(\mathcal {M}_2^{\mathbf{{d}}_2(\phi (x))}\). It therefore does not penalize oscillations, since it does not detect the curvature of \(\phi (\mathcal {M}_1)\) at all.

Example 4.8

(Lack of rank-one convexity) We present an additional example of a configuration for which the integrand of an energy of the type \({\tilde{E}}_{\text {mem}}\) is not rank-one convex. Rank-one convexity of the complete energy density, i.e., , convexity in \(t \in \mathbb {R}\) when composed with the function \(A+tB\) for any matrix A and any rank-one matrix B, is known to be a necessary condition for quasiconvexity ([20], Theorem 5.3). Quasiconvexity, in turn, is necessary for weak lower semicontinuity of integral functionals in Sobolev spaces ([20], Theorem 8.1 and Remark 8.2).

Let \(\Omega =(-2,2)^2\), and \(\mathcal {M}_1\) be a closed \(C^2\) curve such that \(\mathcal {M}_1 \cap (-1,1)\times (0,2)=(-1,1)\times \left\{ 1\right\} \). At any point \(x_0 \in (-1,1)\times \left\{ 1\right\} \), the tangential derivatives are just partial derivatives along the first coordinate, yielding
$$\begin{aligned} {{{\tilde{\mathcal {D}}}}}_{tg}\phi (x_0)= & {} \mathcal {D}\phi (x_0) \text {P}(e_2)=\left( \begin{array}{cc} \partial _1 \phi _1(x_0) &{} 0 \\ \partial _1 \phi _2(x_0) &{} 0 \end{array}\right) , \text { and }\\ {{{\tilde{\mathcal {D}}}}}_{tg}\phi (x_0)^T {{{\tilde{\mathcal {D}}}}}_{tg}\phi (x_0)= & {} \left( \begin{array}{cc} \left( \partial _1 \phi _1(x_0)\right) ^2 + \left( \partial _1 \phi _2(x_0)\right) ^2 &{} 0 \\ 0 &{} 0 \end{array}\right) . \end{aligned}$$
Hence, the tangential area distortion measure reduces to
$$\begin{aligned} \begin{aligned} {\mathrm {tr}}({{{\tilde{\mathcal {D}}}}}_{tg}\phi (x_0)^T {{{\tilde{\mathcal {D}}}}}_{tg}\phi (x_0))&=\det ({{{\tilde{\mathcal {D}}}}}_{tg}\phi (x_0)^T {{{\tilde{\mathcal {D}}}}}_{tg}\phi (x_0)+e_2 \otimes e_2)\\&=\left( \partial _1 \phi _1(x_0)\right) ^2 + \left( \partial _1 \phi _2(x_0)\right) ^2, \end{aligned} \end{aligned}$$
(4.30)
where \(e_2=(0,1)^T\). Defining now the convex function
$$\begin{aligned} F(a,d)=\frac{1}{2} a + \frac{1}{2} d + d^{-1}-2, \end{aligned}$$
which has a unique minimum with value 0 for \(a=d=1\), we have that the energy density
$$\begin{aligned} W_F(B)=F\left( {\mathrm {tr}}(B^TB), \det (B^TB+e_2 \otimes e_2) \right) \end{aligned}$$
has a pointwise minimum, with value zero, whenever \(\mathcal {D}\phi \) is such that \(\left( \partial _1 \phi _1\right) ^2 + \left( \partial _1 \phi _2\right) ^2=1\).
Consider now, for \(0\le \lambda \le 1\), the family of matrices
$$\begin{aligned} B(\lambda )=\left( \begin{array}{cc} \lambda &{} 0 \\ (1-\lambda ) &{} 0 \end{array}\right) =\lambda \left( \begin{array}{cc} 1 &{} 0 \\ 0 &{} 0 \end{array}\right) +(1-\lambda ) \left( \begin{array}{cc} 0 &{} 0 \\ 1 &{} 0 \end{array}\right) . \end{aligned}$$
(4.31)
Clearly \(B(\lambda )\) is rank one. But we have \(W_F(B(\lambda ))=\lambda ^2+(1-\lambda )^2+\frac{1}{\lambda ^2+(1-\lambda )^2}-2\) and therefore
$$\begin{aligned} W_F(B(0))=F(B(1))=0, \text { but }W_F( B(1/2))=\frac{1}{2}, \end{aligned}$$
which demonstrates that \(W_F\) is not rank-one convex.

5 Finite Element Discretization Based on Adaptive Octrees

We adopt a ‘discretize, then optimize’ approach and consider a finite element approximation and optimize for the coefficients of the solution. Since the energy \(E_\nu \) is highly nonlinear and nonconvex, we use a cascadic multilevel minimization scheme in which the solution for one grid level is used as the initial data for the minimization on the next finer grid. We use adaptive refinement of the underlying meshes around the surfaces \(\mathcal {M}_1, \mathcal {M}_2 \subset (0,1)^n\) for \(n=2,3\) (Algorithm 1).

One of the main characteristics of our functional is the pervasive presence of coefficients depending on the deformed position \(\phi (x)\). Indeed, this is how the functional takes into account the geometry of target surface, through the projection \(\text {P}_2\) and shape operator \({\mathcal {S}}_2\). From an implementation perspective, however, this means that frequently discrete functions have to evaluated at deformed positions. Therefore, the ability to efficiently search the index of an element containing a given position is of paramount importance, so a hierarchical data structure that allows for efficient searching is needed. The model only contains first derivatives of the unknown deformation. Hence, multilinear finite elements already allow a conforming discretization. For these reasons we use multilinear FEM on octree grids. The grids used are such that all of the elements are either squares or cubes of side length \(h=2^{-\ell }\), for an integer \(\ell \) to which we refer as grid level of the element. In what follows let us detail the different ingredients of the algorithm.
Multilinear Finite Elements on Octrees We assume \(n=3\) for the presentation here. Using an adaptive octree grid based on cubic cells leads to hanging nodes (see Fig. 4), nodes which are on the facet of a cell without being one of its vertices. Enforcing continuity of the finite element functions leads to constraints for function values on hanging nodes and these hanging nodes are not degrees of freedom. Additionally, to minimize the complexity of the required interpolation rules, the subdivision is propagated in such a way that the grid level of neighboring elements sharing a cell facet differs at most by one.
Fig. 4

Hierarchical grids corresponding to the dolphin surfaces (different 2D slices in 3D, grid level 8, 178584 DOFs, \(1.1\%\) of the amount of DOFs in the full grid case) and leaf contours (2D, level 10)

Octrees and the access to degrees of freedom via hashtables Even though the tree structure gives a natural hierarchical structure to the elements of the mesh, maintaining consistent linear indices for degrees of freedom, hanging nodes, and elements can be delicate. Consistent rules could be devised to maintain consistency with the element octree for a given mesh, but these would not be easy to update when the grid is refined. In order to keep track of vertex indices in a simple manner without sacrificing efficiency, hash maps ([19], Chapter 11) are maintained to keep track of the indices of degrees of freedom, hanging nodes, and cells. The keys used in the hashmap are a combination of a level value \(\ell \) and point coordinates as integer multiples of \(h=2^{-\ell }\). These keys uniquely identify nodes or elements, with the convention that an element is identified with its lower-left-back corner. Whenever a query for a node or cell is made, there are two possible outcomes. If it is already contained in the corresponding hash table, a linear index for it can be retrieved. Otherwise, a new entry of the hash table is created and the node or cell is given the next unused index. Since we do not require coarsening of the mesh, this scheme guarantees a consistent linear set of indices with a computational cost for insertions and queries that is, on average, independent of the mesh size.

Computing distance functions on octrees In our model, we have assumed that the distance functions to our surfaces are given. In practice, especially when using adaptive grids, we need to compute signed distance functions on such grids. This has been accomplished by a straightforward adaptation of the Fast Marching Method on cartesian grids [57] exploiting the fact that our grids still are subgrids of a regular cartesian grid. In the implemented variant hanging nodes are not taken into account for the propagation, their values being linearly interpolated to accommodate the constraints needed for conformality. The initialization for the distance computation has been performed starting from triangular meshes of the surfaces (for \(n=3\); for \(n=2\) two-bit segmentation of interior and exterior of the curves has been used). The signs of the distance functions have to be computed separately, by detecting which points of the grid are inside (resp. outside) the initial surface data. In our case, they have been computed with the provably correct algorithm given in [2].

Computation of the coefficients The discretization for the unknown deformation \(\phi \), as already mentioned, is done by multilinear finite elements. However, the coefficients of our model include first and second derivatives of the signed distance functions \(\mathbf{{d}}_i\), for the normal vectors \(\mathbf{{n}}_i\) and shape operators \({\mathcal {S}}_i\) (\(i=1,2\)), respectively. The approximations are required to be robust, since they appear in the highest order terms of the model. For the normal vectors \(\mathbf{{n}}_i\), we compute the \(L^2\) projection of the finite element derivative of \(\mathbf{{d}}_i\) to recover the nodal values of a piecewise multilinear function, followed by a orthogonal projection to the unit sphere to restore the constraint \(| \mathbf{{n}}_i | = 1\).

In the case of the shape operators, our approach is to approximate the distance functions \(\mathbf{{d}}_i\) by a quadratic polynomial supported on a neighborhood of each point. Given a fixed integer neighborhood size r, for each nonhanging node \(x_k\) (i.e., the neighborhood \(B_r(x_k)\) contains the r closest other degrees of freedom of the adaptive grid) the local quadratic polynomial \(p_k\) is defined as the one minimizing the least-squares error
$$\begin{aligned} \sum _{x_j \in B_r(x_k)} \left( p_k(x_j)-\mathbf{{d}}_i(x_j) \right) ^2\,. \end{aligned}$$
which can be easily computed by inverting a small matrix. The Hessian of \(\mathbf{{d}}_i\) at the node \(x_k\) is then approximated by the Hessian of \(p_k\).

For the computation of matrix square roots and their inverses, we have used the method described in [26], taking appropriate care to truncate almost-singular matrices, since the resulting square roots also appear inverted.

Minimization strategy For the minimization at each level, we have opted for a Fletcher-Reeves nonlinear conjugate gradient method ([52], Section 5.2). The \(L^2\) gradient of \(E_\nu \), whose computation is involved but elementary, was implemented directly. The parameter \(\alpha \) is progressively reduced when a further feasible descent step is not found, according to an Armijo line search ([52], Section 3.1).

6 Numerical Results

All of our results have been computed on the unit cube \(\Omega =[0,1]^3\) for the matching of surfaces in 3D, and the unit square \([0,1]^2\) for the matching of contour curves in 2D. In practice, we have used homogeneous Neumann boundary conditions, since this allows to have relatively large shapes \(\mathcal {M}_i\) in comparison with the size of the domain \(\Omega \) without creating excessive volume energies near the boundary (for the justification we refer to Corollary 4.3). However, if the boundary is not fixed, the deformed domain \(\phi (\Omega )\) is not necessarily contained in \(\Omega \), so evaluation of coefficients on deformed positions has to be appropriately handled numerically. We use a projection of outside position onto the boundary of \(\Omega \) for sufficient large \({\text {dist}}(\mathcal {M}_2, \partial \Omega )\).

For the membrane and the bending energy we use the material parameters \(\lambda =\mu =1\), corresponding to the density
$$\begin{aligned} W(A)=\frac{1}{2}| A |^2 + \frac{1}{4} (\det A)^2 + \frac{3}{2}e^{- ( \det A - 1 ) } - \frac{13}{4}. \end{aligned}$$
In the bending term, the shape operators have been regularized through the truncated absolute value function with \(\tau =1\). Since we work on the unit cube, this corresponds to a comparatively large curvature radius. For the volume term, given that enforcing orientation preservation in a finite element framework is a far from straightforward, it is advantageous to work with the simplified version
$$\begin{aligned} c_{\text {vol}}\int _\Omega W(\mathcal {D}\phi ) \,{{\text {d}}}x. \end{aligned}$$
We have run the minimization scheme of Algorithm 1 beginning from a uniform grid of level \(\ell _{\text {min}}=2\) or \(\ell _{\text {min}}=3\) with \(9^3=729\) nodes, and refined up to \(\ell _{\text {max}}=8\) for 3D examples. For 2D cases, a reasonable range turned out to be \(\ell _{\text {min}}=4, \ell _{\text {max}}=10\). The finest grids used for two of the examples below are depicted in Fig. 4. The width of the narrow band was chosen proportional the finest resolution of the mesh (\(\sigma =2h\)) since a small value of \(\sigma \) clearly produces inaccurate results when \(\eta _\sigma \) is evaluated on coarse grids. However, the constraint \(\int _\Omega \eta _\sigma = 1\) ensures that the overall strength of the surface terms \(E_{\text {match}}\), \(E_{\text {mem}}\) and \(E_{\text {bend}}\) is not affected. The value of the penalty constraint \(\nu \) was divided by 10 for each grid refinement, which is justified by Proposition 4.4. Furthermore, the volume weight \(c_{\text {vol}}\) was also halved per level to allow for simultaneously higher initial regularization and close final matches. Note that this reduction is much slower than that of the matching parameter.

In all examples, we have used the identity as the initial deformation. It should be noted that although the energy is geometric by design, we are using a first-order descent method for its minimization. In consequence, an adequate rigid pre-alignment can be beneficial for intricate shapes. Figure 8 shows results for the matching of two different dolphin shapes. Our variational approach is highly nonlinear and nonconvex. Thus, the numerical approximation of the globally optimal deformation depends on the initialization of the deformation. Figure 9 shows that the identity deformation as the initial deformation is advisable only if the expected optimal deformation is not too large. This is demonstrated by applying different rigid body motions to \(\mathcal {M}_1\).

Fig. 5

Behavior of the optimal (numerical) deformation in the presence of strong compression. From left to right: Textured \(\mathcal {M}_1\), \(\mathcal {M}_2\), resulting deformed shape \(\phi (\mathcal {M}_1)\) after grid level 7 with our model, and corresponding result after grid level 4 when \(\text {P}_2\) is not present in \(E_{\text {mem}}\)

Fig. 6

Detail is added progressively in the cascadic coarse-to-fine scheme. From left to right: Textured \(\mathcal {M}_1\), \(\mathcal {M}_2\), resulting deformed shape \(\phi (\mathcal {M}_1)\) after the computation on grid level 4, 6 and 8, respectively

Fig. 7

From left to right: Textured hand shape \(\mathcal {M}_1\), resulting deformed shape \(\phi (\mathcal {M}_1)\) after level 8 in the minimization scheme, comparison of target and obtained shapes after the computation on grid level 4 and 8, respectively

Fig. 8

From left to right: Textured dolphin \(\mathcal {M}_1\), \(\mathcal {M}_2\), resulting deformed shape \(\phi (\mathcal {M}_1)\) after level 8 in the minimization scheme, comparison of target and obtained shapes after the computation on grid level 4 and 8, respectively. The corresponding final grid is depicted in Fig. 4

All figures have been produced by deforming the input data (polygonal curve or triangulated surface) via the resulting deformation \(\phi \). This is in contrast to deforming the grid and plotting the resulting extracted level sets (which effectively visualizes the inverse deformation), as commonly done in the registration literature, and also in [32].

Test case First, we present a simple test case to underline the qualitative properties of our model. Figure 5 shows a configuration in which a high amount of compression, combined with rotation, is required. Our model finds the intuitively correct deformation, but oscillations typical for the lack of lower semicontinuity of the underlying energy are induced when \(\text {P}_2\) is not used in the membrane and bending terms. The bending term assists in matching the curvatures even if the deformation is not rigid. Note, however, that for the optimal match the curvature energy \(E_{\text {bend}}\) is not expected to vanish, as can easily be seen from (2.6), (3.4) and the related discussion in Sect. 3.

Fig. 9

From left to right: Initial shape of Fig. 8 after undergoing a rotation of \(\pi /6\), deformed shape after level 8 in the minimization (correct matching), after a rotation of \(\pi \), and corresponding result (incorrect matching). Moderate changes in the initial alignment are handled correctly, while drastic ones are not

Fig. 10

From left to right: Textured sugar beet shape \(\mathcal {M}_1\), resulting deformed shape \(\phi (\mathcal {M}_1)\) after level 8 in the minimization scheme, comparison of target sugar beet shape and obtained shapes after the computation on grid level 4 and 8, respectively

Fig. 11

2D example. From left to right: Colored leaf contours \(\mathcal {M}_1\), \(\mathcal {M}_2\), resulting deformed leaf shape \(\phi (\mathcal {M}_1)\) after the computation on grid level 10 and corresponding deformed grid. The corresponding undeformed grid is depicted in Fig. 4

Shape matching applications We now turn our attention to high-resolution examples with real data. Figure 6 demonstrates the effect of the multilevel descent scheme, in which details are added progressively to avoid spurious local minima. In Fig. 11, a high-resolution 2D example is presented. Figures 7, 8, 9 and 10 show 3D examples in which the influence of the curvature matching is indispensable to obtain shape sensitive matching deformations. For these examples, the shell parameter \(\delta \) was chosen quite high, since the curvature matching term \(E_{\text {bend}}\) is a major driving force to obtain correct matching of geometric features. Table 1 lists the parameter values used, and run times for our implementation. We have split the timings between the highest resolution level and the combined previous ones, since in many applications a very high level of detail might not be necessary, thereby significantly reducing the required computational effort.
Table 1

Parameters and running times on a workstation with a single Intel Xeon E5-1650 CPU (6 cores, 3.2 Ghz)

Figs.

\(\ell _{\text {min}}, \ell _{\text {max}}\)

\(\delta \)

\(c_{\text {vol}}, \nu \) at \(\ell _{\text {min}}\)

Time, \(\ell \le (\ell _{\text {max}}-1)\)

Time, \(\ell = \ell _{\text {max}}\)

DOFs at \(\ell _{\text {max}}\) (K)

6

3, 8

0.5

0.025, 0.002

1 h 04 min

4 h 34 min

695

7

2, 8

0.71

0.05, 0.1

30 min 10 s

1 h 27 min

313

8

3, 8

1

0.025, 0.002

20 min 04 s

50 min 50 s

179

10

3, 8

0.5

0.025, 0.002

28 min 56 s

1 h 25 min

408

Our implementation splits the computation of the different terms of the energy and the corresponding derivatives in different threads (obtaining a speedup factor \(\approx 2\)), but no further parallelization is used

Notes

Acknowledgements

Open access funding provided by University of Vienna. This research was supported by the Austrian Science Fund (FWF) through the National Research Network ‘Geometry+Simulation’ (NFN S117) and Doctoral Program ‘Dissipation and Dispersion in Nonlinear PDEs’ (W1245). Furthermore, the authors acknowledge support of the Hausdorff Center for Mathematics at the University of Bonn. We would like to thank the anonymous reviewers for comments that have led to substantial improvements in this paper. The shapes for Fig. 8 are originally from the McGill 3D Shape Benchmark [58]. The scanned faces of Fig. 6 are part of the 3D Basel Face Model dataset [53]. The laser-scanned sugar beets of Fig. 10 and the original shapes for Fig. 7 were kindly provided by Behrend Heeren.

References

  1. 1.
    R. A. Adams and J. J. F. Fournier, Sobolev spaces, vol. 140 of Pure and Applied Mathematics (Amsterdam), Elsevier/Academic Press, Amsterdam, second ed., 2003.Google Scholar
  2. 2.
    J. A. Baerentzen and H. Aanaes, Signed distance computation using the angle weighted pseudonormal, IEEE Trans. Vis. Comput. Graphics, 11 (2005), pp. 243–253.CrossRefGoogle Scholar
  3. 3.
    J. M. Ball, Convexity conditions and existence theorems in nonlinear elasticity, Arch. Ration. Mech. Anal., 63 (1977), pp. 337–403.MathSciNetCrossRefMATHGoogle Scholar
  4. 4.
    J. M. Ball, Global invertibility of Sobolev functions and the interpenetration of matter, Proc. Roy. Soc. Edinburgh Sect. A, 88 (1981), pp. 315–328.MathSciNetCrossRefMATHGoogle Scholar
  5. 5.
    A. Bonito, R. H. Nochetto, and M. S. Pauletti, Parametric FEM for geometric biomembranes, J. Comput. Phys., 229 (2010), pp. 3171–3188.MathSciNetCrossRefMATHGoogle Scholar
  6. 6.
    M. Botsch, M. Pauly, M. Gross, and L. Kobbelt, PriMo: Coupled prisms for intuitive surface modeling, in Proceedings of the Fourth Eurographics Symposium on Geometry Processing, Eurographics Association, 2006, pp. 11–20.Google Scholar
  7. 7.
    M. Botsch and O. Sorkine, On linear variational surface deformation methods, IEEE Trans. Vis. Comput. Graph., 14 (2008), pp. 213–230.CrossRefGoogle Scholar
  8. 8.
    A. Braides, \(\Gamma \)-convergence for beginners, vol. 22 of Oxford Lecture Series in Mathematics and its Applications, Oxford University Press, Oxford, 2002.Google Scholar
  9. 9.
    K. Bredies, T. Pock, and B. Wirth, Convex relaxation of a class of vertex penalizing functionals, J. Math. Imaging Vis., 47 (2013), pp. 278–302.MathSciNetCrossRefMATHGoogle Scholar
  10. 10.
    K. Bredies, T. Pock, and B. Wirth, A convex, lower semicontinuous approximation of Euler’s elastica energy, SIAM J. Math. Anal., 47 (2015), pp. 566–613.MathSciNetCrossRefMATHGoogle Scholar
  11. 11.
    A. Bronstein, M. Bronstein, and R. Kimmel, Numerical Geometry of Non-Rigid Shapes, Monographs in Computer Science, Springer, 2008.Google Scholar
  12. 12.
    M. Burger, J. Modersitzki, and L. Ruthotto, A hyperelastic regularization energy for image registration, SIAM J. Sci. Comput., 35 (2013), pp. B132–B148.MathSciNetCrossRefMATHGoogle Scholar
  13. 13.
    I. Chao, U. Pinkall, P. Sanan, and P. Schröder, A simple geometric model for elastic deformations, ACM Trans. Graph., 29 (2010), pp. 38:1–38:6.CrossRefGoogle Scholar
  14. 14.
    G. Charpiat, O. Faugeras, and R. Keriven, Approximations of shape metrics and application to shape warping and empirical shape statistics, Found. Comp. Math., 5 (2004), pp. 1–58.MathSciNetCrossRefMATHGoogle Scholar
  15. 15.
    Z. Chen and Z. Huan, On the continuity of the m-th root of a continuous nonnegative definite matrix-valued function, J. Math. Anal. Appl., 209 (1997), pp. 60–66.Google Scholar
  16. 16.
    P. Ciarlet and G. Geymonat, Sur les lois de comportement en lasticit non linaire compressible, CR Acad. Sci. Paris Sr. II, 295 (1982), pp. 423–426.MATHGoogle Scholar
  17. 17.
    P. G. Ciarlet, Mathematical elasticity, volume I: Three-dimensional elasticity, North-Holland, Amsterdam, 1988.Google Scholar
  18. 18.
    P. G. Ciarlet, Mathematical elasticity, volume III: Theory of shells, North-Holland, Amsterdam, 2000.Google Scholar
  19. 19.
    T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein, Introduction to Algorithms, 3rd Edition, The MIT Press, 3rd ed., 2009.Google Scholar
  20. 20.
    B. Dacorogna, Direct methods in the calculus of variations, vol. 78 of Applied Mathematical Sciences, Springer, New York, second ed., 2008.Google Scholar
  21. 21.
    M. C. Delfour and J.-P. Zolésio, Shape analysis via oriented distance functions, J. Funct. Anal., 123 (1994), pp. 129–201.MathSciNetCrossRefMATHGoogle Scholar
  22. 22.
    M. C. Delfour and J.-P. Zolésio, A boundary differential equation for thin shells, J. Differential Equations, 119 (1995), pp. 426–449.MathSciNetCrossRefMATHGoogle Scholar
  23. 23.
    M. C. Delfour and J.-P. Zolésio, Shapes and geometries, vol. 22 of Advances in Design and Control, Society for Industrial and Applied Mathematics (SIAM), Philadelphia, PA, second ed., 2011.Google Scholar
  24. 24.
    A. Elad and R. Kimmel, On bending invariant signatures for surfaces, IEEE Trans. Pattern Anal. Mach. Intell., 25 (2003), pp. 1285–1295.CrossRefGoogle Scholar
  25. 25.
    L. C. Evans and R. F. Gariepy, Some remarks concerning quasiconvexity and strong convergence, Proc. Roy. Soc. Edinburgh Sect. A, 106 (1987), pp. 53–61.MathSciNetCrossRefMATHGoogle Scholar
  26. 26.
    L. P. Franca, An algorithm to compute the square root of a \(3\times 3\) positive definite matrix, Comput. Math. Appl., 18 (1989), pp. 459–466.MathSciNetCrossRefMATHGoogle Scholar
  27. 27.
    S. Friedland, Variation of tensor powers and spectra, Linear and Multilinear Algebra, 12 (1982/83), pp. 81–98.Google Scholar
  28. 28.
    G. Friesecke, R. D. James, M. G. Mora, and S. Müller, Derivation of nonlinear bending theory for shells from three-dimensional nonlinear elasticity by Gamma-convergence, C.R.A.S. Ser. I: Math, 336 (2003), pp. 697 – 702.MathSciNetMATHGoogle Scholar
  29. 29.
    M. Fuchs, B. Jüttler, O. Scherzer, and H. Yang, Shape metrics based on elastic deformations, J. Math. Imaging Vis., 35 (2009), pp. 86–102.MathSciNetCrossRefGoogle Scholar
  30. 30.
    E. Grinspun, A. N. Hirani, M. Desbrun, and P. Schröder, Discrete shells, in Proceedings of the 2003 ACM SIGGRAPH/Eurographics symposium on Computer animation, SCA ’03, Eurographics Association, 2003, pp. 62–67.Google Scholar
  31. 31.
    V. Guillemin and A. Pollack, Differential topology, Prentice-Hall, Inc., Englewood Cliffs, N.J., 1974.MATHGoogle Scholar
  32. 32.
    J. Iglesias, B. Berkels, M. Rumpf, and O. Scherzer, A thin shell approach to the registration of implicit surfaces, in Proceedings of the Vision, Modeling, and Visualization Workshop 2013, Eurographics Association, 2013, pp. 89–96.Google Scholar
  33. 33.
    S. Kabus, A. Franz, and B. Fischer, Variational image registration with local properties, in Biomedical Image Registration, J. P. W. Pluim, B. Likar, and F. A. Gerritsen, eds., vol. 4057 of Lecture Notes in Computer Science, Springer Berlin Heidelberg, 2006, pp. 92–100.Google Scholar
  34. 34.
    S. Kabus and C. Lorenz, Fast elastic image registration, in Proceedings of the Medical Image Analysis For The Clinic: A Grand Challenge, MICCAI, Beijing, China, 2010, pp. 81–89.Google Scholar
  35. 35.
    S. L. Keeling and W. Ring, Medical image registration and interpolation by optical flow with maximal rigidity, J. Math. Imaging Vision, 23 (2005), pp. 47–65.MathSciNetCrossRefGoogle Scholar
  36. 36.
    W. T. Koiter, On the nonlinear theory of elastic shells, Proc. Kon. Ned. Akad. Wetesnch., (1966), pp. 1–54.Google Scholar
  37. 37.
    N. H. Kuiper, On \(C^1\)-isometric imbeddings I, Nederl. Akad. Wetensch. Proc. Ser. A., 58 (1955), pp. 545–556.MathSciNetCrossRefMATHGoogle Scholar
  38. 38.
    J. Kybic and M. Unser, Fast parametric elastic image registration, IEEE Trans. Image Process., 12 (2003), pp. 1427–1442.CrossRefGoogle Scholar
  39. 39.
    H. Le Dret and A. Raoult, The quasiconvex envelope of the Saint Venant-Kirchhoff stored energy function, Proc. Roy. Soc. Edinburgh Sect. A, 125 (1995), pp. 1179–1192.MathSciNetCrossRefMATHGoogle Scholar
  40. 40.
    T.-Y. Lee and S.-H. Lai, 3D non-rigid registration for MPU implicit surfaces, in CVPR Workshop on Non-Rigid Shape Analysis and Deformable Image Alignment, 2008.Google Scholar
  41. 41.
    G. Leoni, A first course in Sobolev spaces, vol. 105 of Graduate Studies in Mathematics, American Mathematical Society, Providence, RI, 2009.Google Scholar
  42. 42.
    X. Li, Y. Bao, X. Guo, M. Jin, X. Gu, and H. Qin, Globally optimal surface mapping for surfaces with arbitrary topology, IEEE Trans. Vis. Comput. Graph., 14 (2008), pp. 805–819.CrossRefGoogle Scholar
  43. 43.
    Y. Li and L. Nirenberg, The distance function to the boundary, Finsler geometry, and the singular set of viscosity solutions of some Hamilton-Jacobi equations, Comm. Pure Appl. Math., 58 (2005), pp. 85–146.MathSciNetCrossRefMATHGoogle Scholar
  44. 44.
    N. Litke, M. Droske, M. Rumpf, and P. Schröder, An image processing approach to surface matching, in Symposium on Geometry Processing, M. Desbrun and H. Pottmann, eds., 2005, pp. 207–216.Google Scholar
  45. 45.
    C. Mantegazza and A. C. Mennucci, Hamilton-Jacobi equations and distance functions on Riemannian manifolds, Appl. Math. Optim., 47 (2003), pp. 1–25.MathSciNetCrossRefMATHGoogle Scholar
  46. 46.
    M. Marcus and V. J. Mizel, Absolute continuity on tracks and mappings of Sobolev spaces, Arch. Ration. Mech. Anal., 45 (1972), pp. 294–320.MathSciNetCrossRefMATHGoogle Scholar
  47. 47.
    R. E. Megginson, An introduction to Banach space theory, vol. 183 of Graduate Texts in Mathematics, Springer, 1998.Google Scholar
  48. 48.
    J. Modersitzki, Numerical Methods for Image Registration, OUP Oxford, 2004.Google Scholar
  49. 49.
    D. P. Mukherjee and N. Ray, Contour interpolation using level-set analysis, Int. J. Img. Graph., 12 (2012), p. 1250004.MathSciNetCrossRefGoogle Scholar
  50. 50.
    F. Murat, A survey on compensated compactness, in Contributions to modern calculus of variations (Bologna, 1985), vol. 148 of Pitman Res. Notes Math. Ser., Longman Sci. Tech., Harlow, 1987, pp. 145–183.Google Scholar
  51. 51.
    J. Nash, \(C^1\)-isometric imbeddings, Ann. Math., 60 (1954), pp. 383–396.MathSciNetCrossRefMATHGoogle Scholar
  52. 52.
    J. Nocedal and S. Wright, Numerical Optimization, Springer, second ed., 2006.Google Scholar
  53. 53.
    P. Paysan, R. Knothe, B. Amberg, S. Romdhani, and T. Vetter, A 3D face model for pose and illumination invariant face recognition, in Proc. Advanced Video and Signal based Surveillance, 2009.Google Scholar
  54. 54.
    M. Renardy and R. Rogers, An Introduction to Partial Differential Equations, vol. 13 of Texts in Applied Mathematics, Springer, second ed., 2004.Google Scholar
  55. 55.
    P. Risholm, E. Samset, and W. Wells III, Bayesian estimation of deformation and elastic parameters in non-rigid registration, in Biomedical Image Registration, B. Fischer, B. M. Dawant, and C. Lorenz, eds., vol. 6204 of Lecture Notes in Computer Science, Springer, 2010, pp. 104–115.Google Scholar
  56. 56.
    M. Rumpf and B. Wirth, A nonlinear elastic shape averaging approach, SIAM J. Imaging Sci., 2 (2009), pp. 800–833.MathSciNetCrossRefMATHGoogle Scholar
  57. 57.
    J. A. Sethian, Level set methods and fast marching methods, Cambridge University Press, second ed., 1999.Google Scholar
  58. 58.
    K. Siddiqi, J. Zhang, D. Macrini, A. Shokoufandeh, S. Bouix, and S. Dickinson, Retrieving articulated 3-D models using medial surfaces, Machine Vision and Applications, 19 (2008), pp. 261–275.CrossRefMATHGoogle Scholar
  59. 59.
    A. Srivastava, C. Samir, S. H. Joshi, and M. Daoudi, Elastic shape models for face analysis using curvilinear coordinates, J. Math. Imaging. Vis., 33 (2009), pp. 253–265.MathSciNetCrossRefGoogle Scholar
  60. 60.
    S. Wang, Y. Wang, M. Jin, X. Gu, and D. Samaras, 3d surface matching and recognition using conformal geometry, in 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), vol. 2, IEEE, 2006, pp. 2453–2460.Google Scholar
  61. 61.
    T. Windheuser, U. Schlickewei, F. R. Schmidt, and D. Cremers, Geometrically consistent elastic matching of 3D shapes: A linear programming solution, in International Conference on Computer Vision, 2011, pp. 2134–2141.Google Scholar
  62. 62.
    D. Zhang and M. Hebert, Harmonic maps and their applications in surface matching, in 1999 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’99), vol. 2, IEEE, 1999, pp. 524–530.Google Scholar

Copyright information

© The Author(s) 2017

Open AccessThis article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Authors and Affiliations

  • José A. Iglesias
    • 1
  • Martin Rumpf
    • 2
  • Otmar Scherzer
    • 1
    • 3
  1. 1.Computational Science CenterUniversity of ViennaViennaAustria
  2. 2.Institute for Numerical SimulationUniversität BonnBonnGermany
  3. 3.RICAMAustrian Academy of SciencesLinzAustria

Personalised recommendations