| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
In the mathematical subfield of numerical analysis a cubic Hermite spline (also called cspline), named in honor of Charles Hermite, is a third-degree spline with each polynomial of the spline in Hermite form. The Hermite form consists of two control points and two control tangents for each polynomial. For interpolation on a grid with points xk for k = 1,...,n, interpolation is performed on one subinterval (xk,xk + 1) at a time (given that tangent values are predetermined). The subinterval (xk,xk + 1) is normalized to (0,1) via t = (x − xk) / (xk + 1 − xk).
[edit] Interpolation on a single interval[edit] Unit interval (0,1)On the unit interval (0,1), given a starting point p0 at t = 0 and an ending point p1 at t = 1 with starting tangent m0 at t = 0 and ending tangent m1 at t = 1, the polynomial can be defined by where t ∈ [0, 1]. The four Hermite basis functions can be defined as to give the polynomial as [edit] Interpolation on (xk,xk + 1)Interpolating x in the interval (xk,xk + 1) can now be done with the formula with h = xk + 1 − xk and t = (x − xk) / h. Note that the tangent values have been scaled by h compared to the equation on the unit interval. [edit] UniquenessThe formulas specified above are guaranteed to produce a unique path between the two points.
So R must be of the form:
We know furthermore that:
Putting (1) and (2) together, we deduce that a = 0 and R = 0, thus P(x) = Q(x) [edit] Interpolating a data setA data set, The choice of tangents is non-unique, and there are several options available. [edit] Finite differenceThe simplest choice is the three-point difference, not requiring constant interval lengths, for internal points k = 2,...,n − 1, and one-sided difference at the endpoints of the data set. [edit] Cardinal splineA cardinal spline is obtained[1] if is used to calculate the tangents. The parameter c is a tension parameter that must be in the interval (0,1). In some sense, this can be interpreted as the "length" of the tangent. c = 1 will yield all zero tangents, and c = 0 yields a Catmull-Rom spline. [edit] Catmull–Rom splineFor tangents chosen to be a Catmull–Rom spline is obtained, being a special case of a cardinal spline. The curve is named after Edwin Catmull and Raphael (Raphie) Rom. In computer graphics, Catmull–Rom splines are frequently used to get smooth interpolated motion between key frames. For example, most camera path animations generated from discrete key-frames are handled using Catmull–Rom splines. They are popular mainly for being relatively easy to compute, guaranteeing that each key frame position will be hit exactly, and also guaranteeing that the tangents of the generated curve are continuous over multiple segments. [edit] Kochanek–Bartels splineMain article: Kochanek–Bartels spline A Kochanek–Bartels spline is a further generalization on how to choose the tangents given the data points [edit] Monotone cubic interpolationMain article: Monotone cubic interpolation If a cubic Hermite spline of any of the above listed types is used for interpolation of a monotonic data set, the interpolated function will not necessarily be monotonic, but monotonicity can be preserved by adjusting the tangents. [edit] Interpolation on the unit interval without exact derivativesGiven p-1, p0, p1 and p2 as the values that the function should take on at -1, 0, 1 and 2, we can use centered differences instead of exact derivatives [2], and the result is where the left-hand vector is independent of the p. This is in fact the Catmull–Rom spline as described above. Note that this approximation is only valid for This writing is relevant for tricubic interpolation, where one optimization requires you to compute CINTx sixteen times with the same x and different p. [edit] See also
[edit] References
[edit] External links
|
| ↑ top of page ↑ | about thumbshots |