Fast convolution-based methods for computing the signed distance function and its derivatives

We present a fast convolution-based technique for computing an approximate, signed Euclidean distance function at a set of 2D and 3D grid locations. Instead of solving the non-linear static Hamilton-Jacobi equation (|\nabla S|=1), our solution stems from solving for a scalar field \phi in a linear differential equation and then deriving the solution for S from its exponent. In other words, when S and \phi are related by \phi = \exp(-S/\tau) and \phi satisfies a specific linear differential equation corresponding to the extremum of a variational problem, we obtain the Euclidean distance function S = -\tau \log(\phi)in the limit as \tau-->0. This is in sharp contrast to solvers such as the fast marching and fast sweeping methods which directly solve the Hamilton-Jacobi equation by the Godunov upwind discretization scheme. Our linear formulation provides us with a closed-form solution to the approximate Euclidean distance function expressed as a discrete convolution, and hence efficiently computed by the Fast Fourier Transform (FFT). Moreover, the solution circumvents the need for spatial discretization of the derivative operator thereby providing highly accurate results. As \tau-->0, we show the convergence of our results to the true solution and also bound the error for a given value of \tau. The differentiability of our solution allows us to compute - using a set of convolutions - the first and second derivatives of the approximate distance function. In order to determine the sign of the distance function (defined to be positive inside a closed region and negative outside), we compute the winding number in 2D and the topological degree in 3D and again explicitly show that these computations can be performed via fast convolutions.

[1]  Ronald Fedkiw,et al.  Level set methods and dynamic implicit surfaces , 2002, Applied mathematical sciences.

[2]  Karthik S. Gurumoorthy,et al.  A Schrödinger Equation for the Fast Computation of Approximate Euclidean Distance Functions , 2009, SSVM.

[3]  Milton Abramowitz,et al.  Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables , 1964 .

[4]  Alfred Gray,et al.  Modern differential geometry of curves and surfaces with Mathematica (2. ed.) , 1998 .

[5]  M. Abramowitz,et al.  Handbook of Mathematical Functions With Formulas, Graphs and Mathematical Tables (National Bureau of Standards Applied Mathematics Series No. 55) , 1965 .

[6]  Oliver Aberth,et al.  Precise Numerical Methods Using C , 1998 .

[7]  G. Wahba Spline models for observational data , 1990 .

[8]  Richard P. Brent,et al.  Fast Multiple-Precision Evaluation of Elementary Functions , 1976, JACM.

[9]  Kaleem Siddiqi,et al.  A Hamiltonian Approach to the Eikonal Equation , 1999, EMMCVPR.

[10]  Stanley Osher,et al.  Fast Sweeping Methods for Static Hamilton-Jacobi Equations , 2004, SIAM J. Numer. Anal..

[11]  Karthik S. Gurumoorthy,et al.  A Schrödinger Wave Equation Approach to the Eikonal Equation: Application to Image Analysis , 2009, EMMCVPR.

[12]  J. Sethian,et al.  FRONTS PROPAGATING WITH CURVATURE DEPENDENT SPEED: ALGORITHMS BASED ON HAMILTON-JACOB1 FORMULATIONS , 2003 .

[13]  Vincent Lefèvre,et al.  MPFR: A multiple-precision binary floating-point library with correct rounding , 2007, TOMS.

[14]  Arnold Schönhage,et al.  Schnelle Multiplikation großer Zahlen , 1971, Computing.

[15]  Hongkai Zhao,et al.  A fast sweeping method for Eikonal equations , 2004, Math. Comput..

[16]  J. Tukey,et al.  An algorithm for the machine calculation of complex Fourier series , 1965 .

[17]  Mark de Berg,et al.  Computational geometry: algorithms and applications , 1997 .

[18]  Yasumasa Kanada,et al.  Practically Fast Multiple-Precision Evaluation of LOG(X) , 1982 .

[19]  Guillermo Sapiro,et al.  O(N) implementation of the fast marching algorithm , 2006, Journal of Computational Physics.

[20]  D. Owen Handbook of Mathematical Functions with Formulas , 1965 .

[21]  Ronald N. Bracewell,et al.  The Fourier Transform and Its Applications , 1966 .

[22]  Stanley Osher,et al.  Legendre-transform-based fast sweeping methods for static Hamilton-Jacobi equations on triangulated meshes , 2008, J. Comput. Phys..

[23]  Hongkai Zhao,et al.  Fast Sweeping Methods for Eikonal Equations on Triangular Meshes , 2007, SIAM J. Numer. Anal..

[24]  David M. Smith,et al.  Efficient multiple-precision evaluation of elementary functions , 1989 .