In image processing, bicubic interpolation is often chosen over bilinear interpolation or nearest neighbor in image resampling, when speed is not an issue. Images resampled with bicubic interpolation are smoother and have fewer interpolation artifacts.
Bicubic spline interpolation
Suppose the function values and the derivatives , and are known at the four corners , , , and of the unit square. The interpolated surface can then be written
The interpolation problem consists of determining the 16 coefficients . Matching with the function values yields four equations,
Likewise, eight equations for the derivatives in the -direction and the -direction
And four equations for the cross derivative .
where the expressions above have used the following identities,
- .
This procedure yields a surface on the unit square which is continuous and with continuous derivatives. Bicubic interpolation on an arbitrarily sized regular grid can then be accomplished by patching together such bicubic surfaces, ensuring that the derivatives match on the boundaries.
If the derivatives are unknown, they are typically approximated from the function values at points neighbouring the corners of the unit square, ie. using finite differences.
Bicubic convolution algorithm
Bicubic spline interpolation is required to solve the linear system described above for each grid cell. An interpolator with similar properties can be obtained by applying convolution with the following kernel in both dimensions:
This approach was proposed by Keys who showed that (which corresponds to cubic Hermite spline) produces the best approximation of the original function.
If we use the matrix notation for the common case , we can express the equation in a more friendly manner:
1 & t & t^2 & t^3
end{bmatrix} begin{bmatrix}
0 & 2 & 0 & 0 -1 & 0 & 1 & 0 2 & -5 & 4 & -1 -1 & 3 & -3 & 1
end{bmatrix} begin{bmatrix}
a_{-1} a_0 a_1 a_2
end{bmatrix} for between 0 and 1 for one dimension (must be applied once in and again in )
Use in computer graphics
The bicubic algorithm is frequently used for scaling images and video for display (see bitmap resampling). It preserves fine detail better than the common bilinear algorithm.
References
See also
- Anti-aliasing
- Bézier surface
- Bilinear interpolation
- Cubic Hermite spline, the one-dimensional analogue of bicubic spline
- Lanczos resampling
- Sinc filter
- Spline interpolation
External links
- Application of interpolation to elevation samples
- Comparison of interpolation functions
- Interpolation theory
- Lagrange interpolation
This article is licensed under the GNU Free Documentation License.
Last updated on Monday June 23, 2008 at 14:44:57 PDT (GMT -0700)
View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation
Copyright © 2008, Dictionary.com, LLC. All rights reserved.











