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.
The interpolation relies on one-order polynomials (i.e., linear functions). The continuous data is modeled as a set of linear functions connecting two pixel intensities. The intensity of a pixel in the output image is assigned to the value of the linear function at the pixel position.
Figure 1 illustrates a 1D example of linear interpolation. The bold segment of the continuous function is determined from two circled data points.
Figure 1:Illustration of the linear 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.
The result of bilinear interpolation on an image is given in Figure 2.
Figure 2:Example of bilinear 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).