


%%%%%%%%%%%%%%
% dac2rgb %%
%%%%%%%%%%%%%%
RGB = dac2rgb(DAC, GammaTable)
DAC contains the frame buffer values of the 3 color planes, in the form
of [DAC_r DAC_g DAC_b], where DAC_x can be a matrix. DAC values should
be in the range [0 1].
RGB is the linear intensity of each gun, returned in the form of [r g b].
To separate the r,g,b planes, use GetPlanes.
GammaTable -- the look up table to go from DAC to linear RGB
If it has one column, all DAC values are changed according to this
If it has 3 columns and more than one row, treat input image as
3 planes and transform to RGB with the corresponding column.
If it is a scalar number, raise the DAC values to this power.
If it is a 3 vector, raise the r,g,b DAC values to the respective
power.
If GammaTable is not given, use a default scalar of 2.2.
The entries in GammaTable are assumed to be in the range [0, 1].
Xuemei Zhang
Last Modified 4/29/98