Home > ISET > imgproc > ieInternal2Display.m

ieInternal2Display

PURPOSE ^

Calculate linear transformation from internal space to display primary space

SYNOPSIS ^

function T = ieInternal2Display(vci)

DESCRIPTION ^

Calculate linear transformation from internal space to display primary space

     T = ieInternal2Display(vci)

 The transformation T finds display values (RGB) that produce the
 internal color space values (e.g., XYZ).  The calculation is performed
 assuming that we have linear control of the display primaries.  To
 create a real display image, we may have to correct for the display
 nonlinearity.

       (displayRGB*displaySPD')*internalCS = internalValues
       displayRGB*(displaySPD'*internalCS) = internalValues
       displayRGB = internalValues * inv(displaySPD'*internalCS);
  So, 
       internal2display = inv(displaySPD'*internalCS);

 Example:  

 Suppose result is in the internal color space (e.g., XYZ)

   img = imageGet(vci,'result');
   T = ieInternal2Display(vci);
   displayImage = imageLinearTransform(img,T);

 Copyright ImagEval Consultants, LLC, 2005.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003