Besides the poor behavior to interpolate high frequencies, linear interpolation has another significant disadvantage: the interpolated curve is not continuous in its first derivative at the grid points. Thus, cubic interpolation uses third-order polynomials to get the “continuous” image.
An example of cubic interpolation is given in Figure 1. Consider the segment of the interpolation between 1 and 2: this third-order polynomial is computed by using the four circled points. Therefore, the whole interpolated function is a piecewise cubic function.
Figure 1:Cubic interpolation on a 1D example. Blue and red dots represent the input and output image pixels, respectively. The purple line is the continuous data reconstructed from the input pixels.
As with previous interpolation methods, the 2D interpolation is made with 1D interpolations on the rows of the image, then on the columns.
An example of bicubic interpolation is given in Figure 2.
Figure 2:Example of bicubic interpolation with a scaling of factor of 3. From left to right: original 5×5 image (input data), continuous data, interpolated 15×15 image (output data).