Interpolation methods#
Nearest neighbour interpolation#
Nearest neighbour interpolation (French: interpolation au plus proche voisin) is the simplest method. The intensity of a pixel in the output image is assigned to the intensity of the closest pixel in the input image.
An example of nearest neighbour interpolation in 1D is given in Fig. 48.
In 2D, a 1D interpolation is made on each row of the image, then a last 1D interpolation is made on the column, as illustrated in Fig. 49.
The result of nearest-neighbour interpolation on an image is given in Fig. 50.
Bilinear interpolation (order 1)#
With linear interpolation (French: interpolation linéaire), the interpolated points lie on pieces of straight lines connecting neighbouring grid points. Because images are in 2D, this method is called bilinear interpolation. This generally gives better results than nearest neighbour interpolation, but structures with high frequencies are not correctly interpolated.
An example of linear interpolation is given in Fig. 51, and the principle of bilinear interpolation is shown in Fig. 52.
The result of bilinear interpolation on an image is given in Fig. 53.
Bicubic Interpolation (order 3)#
The principle of linear interpolation was that a straight line was drawn to pass through two neighbouring points. Besides its 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 Fig. 54. Consider the part of the interpolation between 1 and 2: this third-order polynomial is computed by using the four points identified with the arrows. Therefore, the whole interpolated function is a piecewise cubic function.
As with previous interpolation methods, the 2D interpolation is made with 1D interpolation on the rows of the image, then on the columns, as shown in Fig. 55.
Finally, the result of bicubic interpolation on an image is given in Fig. 53.