Home > ISET > imgproc > ieCRTfromXYZ.m

ieCRTfromXYZ

PURPOSE ^

Create display primaries consistent with specified XYZ values

SYNOPSIS ^

function [newCRT,wave] = ieCRTfromXYZ(displayXYZ,wave)

DESCRIPTION ^

Create display primaries consistent with specified XYZ values

   [newCRT,wave]  = ieCRTfromXYZ(displayXYZ,wave)

 Given display XYZ primaries (displayXYZ), make a physically realizable
 set of display spectral power distributions.   

 displayXYZ contains the desired red, green and blue primary XYZ values in
 the rows. 

 We allow these displays to have negative energy in some of the primaries
 because they are theoretical and only intended to help along with the XYZ
 calculations.

 Example:
  % Each primary is XYZ in a col
  displayXYZ = colorTransformMatrix('lrgb2xyz')';  
  displayXYZ*ones(3,1)
  % Primary SPD in cols
  [sRGBDisplay,wave] = ieCRTfromXYZ(displayXYZ);          

  figure(1); plot(wave,sRGBDisplay);
  ieXYZFromEnergy(sRGBDisplay',wave) - displayXYZ'

  (Transposition is tragic consequence of the ieXYZFromEnergy() routine.)

 Copyright ImagEval Consultants, LLC, 2003.

CROSS-REFERENCE INFORMATION ^

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