Thin plate spline
From Wikipedia, the free encyclopedia
All or part of this article may be confusing or unclear. Please help clarify the article. Suggestions may be on the talk page. (December 2006) |
This is a brief derivation for the closed form solutions for smoothing Thin Plate Spline. Details about these splines can be found in (Wahba, 1990).
Thin plate splines (TPS) were introduced to geometric design by Duchon (Duchon, 1976). The name thin plate spline refers to a physical analogy involving the bending of a thin sheet of metal. In the physical setting, the deflection is in the z direction, orthogonal to the plane. In order to apply this idea to the problem of coordinate transformation, one interprets the lifting of the plate as a displacement of the x or y coordinates within the plane. In 2D cases, given a set of K corresponding points, the TPS warp is described by 2(K + 3) parameters which include 6 global affine motion parameters and 2K coefficients for correspondences of the control points. These parameters are computed by solving a linear system, in other words, TPS has closed-form solution.
Smoothing TPS is a regularized TPS. The model has a parameter λ to control how non-rigid is allowed for the deformation. When , TPS is equal to an affine transformation, as the roughest model for non-rigid deformation.
Contents |
[edit] Radial basis function
Given a set of control points , a radial basis function basically defines a spatial mapping which maps any location x in space to a new location f(x), represented by,
where denotes the usual Euclidean norm and {ci} is a set of mapping coefficients. One possible choice for the kernel function φ is the thin plate spline φ(r) = r2logr. It has a more global nature than the Gaussian kernel φ(r) = exp( − r2 / σ2), which is another common function -- a small perturbation of one of the control points always affects the coefficients corresponding to all the other points as well.
[edit] Thin plate spline
[edit] Smoothness measure
One of the simplest smoothness measures is the space integral of the square of the second order derivatives of the mapping function. This leads us to the thin plate spline (TPS). The TPS fits a mapping function f(x) between corresponding point-sets {yi} and {xi} by minimizing the following energy function:
And for a smoothing TPS, it is
Then smoothing TPS is defined as
For this variational problem, it can be shown that there exists a unique minimizer f (Wahba,1990) with a fixed weight parameter λ which is presented in next section.
[edit] Spline
Suppose the points are in 2D (D = 2). We use homogeneous coordinates for the point-set where a point yi represented as a vector (1,yix,yiy). The unique minimizer f is parameterized by α which comprises two matrices d and c (α = {d,c}).
where d is a matrix representing the affine transformation and c is a warping coefficient matrix representing the non-affine deformation. The kernel function is a vector for each point z, where each entry for 2 dimensions. For the 3 dimension case, . Note that for TPS, the control points {wi} are chosen to be the same as the set of points to be warped {xi}, so we already use {xi} in the place of the control points.
If we substitute the solution for f, Etps becomes:
where Y and X are just concatenated versions of the point coordinates yi and xi, and Φ is a matrix formed from the . Each row of each newly formed matrix comes from one of the original vectors. The matrix Φ represents the TPS kernel. Loosely speaking, the TPS kernel contains the information about the point-set's internal structural relationships. When it is combined with the warping coefficients c, a non-rigid warping is generated.
A nice property of the TPS is that it can always be decomposed into a global affine and a local non-affine component. Consequently, the TPS smoothness term is solely dependent on the non-affine components. This is a desirable property, especially when compared to other splines, since the global pose parameters included in the affine transformation are not penalized.
[edit] Solution
The separation of the affine and non-affine warping space is done through a QR decomposition (Wahba,1990).
where Q1 and Q2 are and orthonormal matrices, respectively. The matrix R is upper triangular. With the QR decomposition in place, we have
where γ is a matrix. Setting c = Q2γ (which in turn implies that XTc = 0) enables us to cleanly separate the first term in last third equation into a non-affine term and an affine term (first and second terms last equation respectively).
The least-squares energy function in the last equation can be first minimized w.r.t γ and then w.r.t. d. By applying Tikhonov regularization we have
The minimum value of the TPS energy function obtained at the optimum is
[edit] Application
TPS has been widely used as the non-rigid transformation model in image alignment and shape matching.
The popularity of TPS comes from a number of advantages: (1) the interpolation is smooth with derivatives of any order; (2) the model has no free parameters that need manual tuning; (3) it has closed-form solutions for both warping and parameter estimation; and (4) there is a physical explanation for its energy function.
[edit] References
- G. Wahba, 1990,Spline models for observational data. Philadelphia: Society for Industrial and Applied Mathematics.
- J. Duchon, 1976, Splines minimizing rotation invariant seminorms in sobolev spaces, constructive theory of functions of several variables. vol 1, pp 85-100
[edit] See also
- Radial basis function
- Subdivision surface (emerging alternative to spline-based surfaces)
- Spline
- Polyharmonic spline (the thin-plate-spline is a special case of a polyharmonic spline)