Home > ISET > color > srgb2lrgb.m

srgb2lrgb

PURPOSE ^

Convert srgb (nonlinear) to linear rgb in the srgb color space

SYNOPSIS ^

function rgb = srgb2lrgb(rgb,maxDV)

DESCRIPTION ^

 Convert srgb (nonlinear) to linear rgb in the srgb color space

   rgb = srgb2lrgb(rgb,maxDV)

Purpose:
  sRGB is a standard color space that is designed around the properties of display monitors (Sony Trinitron CRT). 
  The RGB coordinates in this space are nonlinearly related to XYZ.  Prior
  to the nonlinear step, however, there is a linear stage that we refer to as lrgb. 
  This routine converts the nonlinear (srgb) values into the linear (lrgb) values. 

  The input range for srgb values is (0,255); the range for the linear
  values is (0,1).

 Reference
  http://www.w3.org/Graphics/Color/sRGB (techy)
  http://www.microsoft.com/windowsxp/using/digitalphotography/thebigpicture/colorspaces.mspx  (ugh)

 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