
5.3.1 Nearest-Neighbor Interpolation
The simplest way to fill the output pixel is just to use the gray level of the input
pixel that falls closest to the mapped position, (x, y). However, this technique is
seldom used because it creates a ragged effect in areas of the image containing
detail such as lines and edges.
5.3.2 Bilinear Interpolation
In many cases bilinear interpolation offers the best compromise between pro-
cessing speed and image quality. It is a direct 2-D generalization of linear
interpolation in one dimension. Figure 5.2 shows four adjacent pixels and
a fractional location, (x, y), among them. We first use linear interpolation
horizontally ...