As in the case of shifting, the way to avoid aliasing during enlargement and reduction is to simulate an operation on a continuous image. First, we will look at what happens to the Fourier transform of a continuous image when it is enlarged or reduced.
Consider the zoom operator Za, in which a is a magnification factor.
When a > 1, the resulting image is larger by a factor of a. When 0 < a < 1, it is smaller by a factor of a-1. A larger image will contain lower frequencies, and vice versa. We can see why this is true by evaluating the Fourier transform of Za[x]:
With a change of variables
,
,
The ideal antialiased zoom operation on a sampled image would involve reconstruction of the continuous signal, continuous zooming, and resampling.
As in the case of image shifting, the two filtering operations-postfiltering for reconstruction, and prefiltering for resampling-can be combined into one. However, the zooming operation changes the frequency content of the signal, so the cutoff frequencies of the two filters will not match. The operations in Figure 9 may be expressed as:
By looking at the product of the two filters we can see why the pair
will have a joint cutoff of
:
The reason for the min operation is that the zoom process is more constrained by whichever image has lower resolution. When 0 < a < 1, the image is being shrunk, and the target image resolution is the limiting factor. Because the target image has fewer pixels than the source, there are fewer degrees of freedom in which to encode the signal. Therefore unless we do something very tricky, information will be lost. The source image resolution is limiting when a > 1.
The following equations, obtained by applicaton of discrete convolution (Section 2.6), describe how antialiased zooming may be performed directly on discrete images.
where T is the sampling interval of x[n].