Haeberli and Voorhies have suggested several interesting image
processing techniques using linear interpolation and extrapolation.
Each technique is stated in terms of the formula:
The 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],
extrapolation results.[19]
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 grey image
of the average luminance value of
. Moving toward (x < 1) the
grey image increases contrast; moving away decreases it. Saturation
may be varied using a black and white 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
.[19] For more
details, readers are encouraged to visit
http://www.sgi.com/grafica/interp/index.html