If 'weighted' is selected, the gray values are determined using Gaussian weighted bilinear interpolation. Similar to equally weighted interpolation, the gray value interpolation is executed in three steps: subsampling, determination of the gray values of the sample points, and calculation of the resulting gray value from the gray values of all sample points.
For 'weighted' interpolation, however, different sampling and weighting methods are applied. The main difference is that now an area larger than the pixel is divided into more subpixels (see figure 2.4). The determination of the gray value of each sample point is carried out in the same way as for the method 'constant' by bilinear interpolation. However, in contrast to equal weights used for the method 'constant', now a Gaussian smoothing is applied. Figure 2.4 shows the weighting for the case that the resulting pixel is sampled at 3 × 3 positions.
The interpolation method 'weighted' roughly corresponds to smoothing the image with a Gaussian filter before subsampling. Compared to equally weighted bilinear interpolation, this interpolation method produces output images with a smoother appearance. However, the runtime increases significantly for downscaled images.