Home > ISET > color > xyz2srgb.m

xyz2srgb

PURPOSE ^

Convert CIE XYZ to sRGB color space

SYNOPSIS ^

function [srgb,lrgb] = xyz2srgb(xyz,gamValue)

DESCRIPTION ^

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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 20-Nov-2008 22:09:04 by m2html © 2003