Haeberli and Voorhies [27] have suggested several interesting
image processing techniques using linear interpolation and extrapolation.
Each technique is stated in terms of the formula:
This equation is evaluated on a per-pixel basis. and
are
the input images, out is the output image, and x is the blending
factor. If x is between 0 and 1, the equations describe a
linear interpolation. If x is allowed to range outside [0..1],
the result is extrapolation [27].
In the limited case where , these equations may be
implemented using the accumulation buffer via the following steps:
The techniques suggested by Haeberli and Voorhies use a degenerate
image as and an appropriate value of x to move toward or away
from that image. To increase brightness,
is set to a black
image and x > 1. To change contrast,
is set to a gray image
of the average luminance value of
. Decreasing x (toward the
gray image) decreases contrast; increasing x increases contrast. Saturation
may be varied using a luminance version of
as
. (For
information on converting RGB images to luminance, see
Section 12.2.4.) Sharpening may be accomplished by setting
to a blurred version of
[27].
Next: 12.2.2 Pixel Scale and
Up: 12.2 Colors and Color
Previous: 12.2 Colors and Color