Interpolation#
Image interpolation is a basic tool used extensively in tasks such as rescaling, translating, shrinking or rotating an image. These tasks are geometric transformations that map an image into a predefined geometry, for example in remote sensing to return a cartographic reference, or in medical imaging to align images on anatomical references. The consequence of a geometric transformation is that the transformed grid points of the input image no longer coincide with the grid points of the output image and vice-versa.
The basic idea of interpolation is quite simple: first, reconstruct a “continuous” image from the discrete input image, then sample this “continuous” image onto the grid of the output image. Interpolation methods differ from the way the “continuous” image is reconstructed.
It is more simple to understand image (2D) interpolation by considering 1D interpolation. Thus the sequel of this section illustrates some interpolation methods in the 1D domain.
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.
Fig. 42 illustrates the principle of nearest neighbour interpolation in a 1-dimensional context.
(Bi)linear interpolation#
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 that nearest neighbour interpolation, but structures with high frequencies are not correctly interpolated.
Polynomial Interpolation#
The basic principle of linear interpolation was that a straight line was drawn to pass through two neighbouring points. Besides its porr behavior to interpolate high frequencies, polynomial interpolation has another significant disadvantage: the interpolated curve is not continuous at the grid points already in its first derivative.
Therefore, an alternative is to use a polynomial of degree \(P\) that must pass through \(P+1\) grid points.