smile.interpolation
Class BicubicInterpolation
- java.lang.Object
-
- smile.interpolation.BicubicInterpolation
-
- All Implemented Interfaces:
- Interpolation2D
public class BicubicInterpolation extends java.lang.Object implements Interpolation2D
Bicubic interpolation in a two-dimensional regular grid. Bicubic spline interpolation guarantees the continuity of the first derivatives, as well as the continuity of a cross-derivative.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 Summary
Constructors Constructor and Description BicubicInterpolation(double[] x1, double[] x2, double[][] y)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleinterpolate(double x1p, double x2p)Interpolate the data at a given 2-dimensional point.
-
-
-
Constructor Detail
-
BicubicInterpolation
public BicubicInterpolation(double[] x1, double[] x2, double[][] y)Constructor. The value in x1 and x2 must be monotonically increasing.
-
-
Method Detail
-
interpolate
public double interpolate(double x1p, double x2p)Description copied from interface:Interpolation2DInterpolate the data at a given 2-dimensional point.- Specified by:
interpolatein interfaceInterpolation2D
-
-
DataMelt 3.0 © DataMelt by jWork.ORG