In the first example, displayed in figure 3.1, the results for nearest neighbor interpolation, bilinear interpolation, and bicubic interpolation are compared for a pure rotation without scaling of the image.
Figure 3.1a) displays the original image containing a serial number of a bank note, where the characters are not horizontal. The image is rotated so that the serial number is horizontal using the interpolation methods 'nearest_neighbor', 'bilinear', and 'bicubic'.
Figure 3.1b) displays the result of the rotation using nearest neighbor interpolation. In the detailed view, the typically undesired jagged appearance at the edges of the characters is clearly visible.
Figure 3.1c) displays the result of the rotation using bilinear interpolation. The edges of the characters now have a very smooth appearance. This is due to the fact, that bilinear interpolation considers four neighboring pixels instead of only one for the determination of the resulting gray value. Note that the results of the interpolation methods 'bilinear', 'constant', and 'weighted' are the same for pure image rotations.
Figure 3.1d) displays the result of the rotation using bicubic interpolation. For pure rotations without upscaling, the result is very similar to that of bilinear interpolation.
Figure 3.1: Comparison of the results for an image rotation using the interpolation methods 'nearest_neighbor', 'bilinear', and 'bicubic'.