next up previous contents
Next: 12.2.2 Pixel Scale and Up: 12.2 Colors and Color Previous: 12.2 Colors and Color

12.2.1 The Accumulation Buffer: Interpolation and Extrapolation

 

Haeberli and Voorhies have suggested several interesting image processing techniques using linear interpolation and extrapolation. Each technique is stated in terms of the formula:
 equation2548
The equation is evaluated on a per-pixel basis. tex2html_wrap_inline7863 and tex2html_wrap_inline7865 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 tex2html_wrap_inline7881, these equations may be implemented using the accumulation buffer via the following steps:

We assume that tex2html_wrap_inline7863 and tex2html_wrap_inline7865 are between 0 and 1. Since the accumulation buffer can only store values in the range [-1..1], for the case x < 0 or x > 1, the equation must be implemented in a different way. Given the value x, we can modify equation 6 and derive a list of accumulation buffer operations to perform the operation. We define a scale factor s such that:
displaymath7859
Equation 6 becomes:
displaymath7860
and the list of steps becomes:

The techniques suggested by Haeberli and Voorhies use a degenerate image as tex2html_wrap_inline7863 and an appropriate value of x to move toward or away from that image. To increase brightness, tex2html_wrap_inline7863 is set to a black image and x > 1. To change contrast, tex2html_wrap_inline7863 is set to a grey image of the average luminance value of tex2html_wrap_inline7865. Moving toward (x < 1) the grey image increases contrast; moving away decreases it. Saturation may be varied using a black and white version of tex2html_wrap_inline7865 as tex2html_wrap_inline7863 (for information on converting RGB images to luminance, see section 12.2.4). Sharpening may be accomplished by setting tex2html_wrap_inline7863 to a blurred version of tex2html_wrap_inline7865.[19] For more details, readers are encouraged to visit http://www.sgi.com/grafica/interp/index.html


next up previous contents
Next: 12.2.2 Pixel Scale and Up: 12.2 Colors and Color Previous: 12.2 Colors and Color

David Blythe
Thu Jul 17 21:24:28 PDT 1997