public class BicubicInterpolation extends java.lang.Object implements Interpolation2D
Note that CubicSplineInterpolation2D guarantees the continuity of the first and second function derivatives but bicubic spline guarantees continuity of only gradient and cross-derivative. Second derivatives could be discontinuous.
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.
| Constructor and Description |
|---|
BicubicInterpolation(double[] x1,
double[] x2,
double[][] y)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
interpolate(double x1p,
double x2p)
Interpolate the data at a given 2-dimensional point.
|
java.lang.String |
toString() |
public BicubicInterpolation(double[] x1,
double[] x2,
double[][] y)
public double interpolate(double x1p,
double x2p)
Interpolation2Dinterpolate in interface Interpolation2Dpublic java.lang.String toString()
toString in class java.lang.Object