


Convert CIE XYZ to sRGB color space
[srgb,lrgb] = xyz2srgb(xyz,[gamValue = 2.2])
CIE XYZ values (in an RGB Format image) are converted to sRGB values.
The sRGB color space is a display-oriented representation that matches
a Sony Trinitron. The monitor white point is assumed to be D65. The
white point chromaticity are (.3127,.3290).
sRGB values run from [0 255].
The linear srgb values (lRGB) can also be returned. These are the values
of the linear phosphor intensities, without any gamma or clipping
applied. lRGB values nominally run from [0,1], but we allow them to be
returned outside of this range.
The optional display gamValue has a default of 2.2.
(Intensity = DisplayRGB^gamma)
Reference: http://www.w3.org/Graphics/Color/sRGB
See also: colorTransformMatrix, lrgb2srgb, and imageLinearTransform.
Copyright ImagEval Consultants, LLC, 2003.