On Computing Elastic Shape Distances between Curves in d-dimensional Space

Javier Bernal,Jim Lawrence,Gunay Dogan,Charles Hagwood
DOI: https://doi.org/10.6028/NIST.TN.2164
2024-09-28
Abstract:The computation of the elastic registration of two simple curves in higher dimensions and therefore of the elastic shape distance between them has been investigated by Srivastava et al. Assuming the first curve has one or more starting points, and the second curve has only one, they accomplish the computation, one starting point of the first curve at a time, by minimizing an L2 type distance between them based on alternating computations of optimal diffeomorphisms of the unit interval and optimal rotation matrices that reparametrize and rotate, respectively, one of the curves. We recreate the work by Srivastava et al., but in contrast to it, again for curves in any dimension, we present a Dynamic Programming algorithm for computing optimal diffeomorphisms that is linear, and justify in a purely algebraic manner the usual algorithm for computing optimal rotation matrices, the Kabsch-Umeyama algorithm, which is based on the computation of the singular value decomposition of a matrix. In addition, we minimize the L2 type distance with a procedure that alternates computations of optimal diffeomorphisms with successive computations of optimal rotation matrices for all starting points of the first curve. Carrying out computations this way is not only more efficient all by itself, but, if both curves are closed, allows applications of the Fast Fourier Transform for computing successively in an even more efficient manner, optimal rotation matrices for all starting points of the first curve.
Differential Geometry,Computational Geometry
What problem does this paper attempt to address?
The problem that this paper attempts to solve is to calculate the elastic shape distance between two simple curves in a multi - dimensional space, as well as the corresponding elastic registration problem. Specifically, when given two simple curves (which can be open or closed), the authors' goal is to find a method to minimize the \(L^2\) - type distance between these two curves by re - parameterizing (using diffeomorphisms of the unit interval) and rotating (using \(d\times d\) rotation matrices) one of the curves. The minimized distance is the elastic shape distance between the two curves, and the results of re - parameterization and rotation are their elastic registration. ### Main contributions of the paper 1. **Linear dynamic programming algorithm**: Different from the method of Srivastava et al., this paper proposes a linear dynamic programming (DP) algorithm to calculate the optimal diffeomorphism, thereby achieving the elastic registration of curves. This algorithm has an improvement in computational efficiency. 2. **Algebraic proof of the Kabsch - Umeyama algorithm**: The authors prove the commonly - used Kabsch - Umeyama algorithm from a purely algebraic perspective, which is used to calculate the optimal rotation matrix. This algorithm is based on the singular value decomposition (SVD) of matrices. 3. **Alternating calculation method**: The paper proposes an iterative process that alternately calculates the optimal diffeomorphism and the optimal rotation matrix to minimize the \(L^2\) - type distance. For closed curves, the fast Fourier transform (FFT) can also be used to further improve the computational efficiency. ### Specific steps 1. **Calculation of diffeomorphism**: - Use the linear dynamic programming algorithm to find the optimal diffeomorphism on the given grid points. - Through the discretization method, transform the continuous optimization problem into a discrete optimization problem, and use the trapezoidal rule for numerical integration. 2. **Calculation of rotation matrix**: - Use the Kabsch - Umeyama algorithm to find the optimal rotation matrix by calculating the singular value decomposition of the matrix. - This algorithm ensures that the rotated curve can be aligned with the original curve to the greatest extent. 3. **Alternating optimization**: - Alternately execute the calculation of diffeomorphism and rotation matrix until the \(L^2\) - type distance is minimized. - For closed curves, use FFT to further accelerate the calculation of the rotation matrix. ### Application scenarios Calculating elastic shape distance and elastic registration has important applications in many fields, such as fiber bundle analysis, geological terrain research, protein structure analysis, facial surface modeling, color image processing, etc. These applications require accurate comparison and alignment of curves or surfaces in high - dimensional spaces. ### Summary This paper solves the problem of calculating the elastic shape distance between two simple curves in a multi - dimensional space by proposing efficient calculation methods. These methods not only improve the computational efficiency but also provide strict theoretical proofs, providing strong support for research in related fields.