If 'constant' is selected, the gray values are determined using equally weighted bilinear interpolation. To reduce the effects of aliasing in downscaled images, the smoothing of the image is integrated into the gray value interpolation in the following way: First, the resulting pixel is subsampled, i.e., it is divided into multiple parts. In the example depicted in figure 2.3, the back-transformed resulting pixel has the size [ 1.5, 1.5 ] with respect to the pixels in the input image. It is sampled twice in each direction.
Then, the gray value at each sample point is determined by bilinear interpolation in the input image. Finally, the gray value of the resulting pixel is computed by calculating the mean of the gray values of all sample points.