Home > ISET > vcamera > scene > Macbeth > macbethIdealColor.m

macbethIdealColor

PURPOSE ^

Calculate MCC values for given an illuminant in a color space

SYNOPSIS ^

function target = macbethIdealColor(illuminant,colorSpace)

DESCRIPTION ^

Calculate MCC values for given an illuminant in a color space

   target = macbethIdealColor(illuminant,colorSpace)

 Possible illuminants are listed in readIllumination

 Possible color spaces are
    'LAB'
    'XYZ'
    'lRGB'          linear RGB (from sRGB)
    'sRGB'          display sRGB
    'Stockman'      (not yet)
    'SmithPokorny'  (not yet)

 Example:
    macbethXYZ = macbethIdealColor('d65','xyz');
    xy = chromaticity(macbethXYZ);
    plot(xy(:,1), xy(:,2),'o'); hold on; plotSpectrumLocus

    lRGB = macbethIdealColor('d65','lrgb');


   lightParameters.name = 'blackbody';
   lightParameters.temperature = 3000;
   lightParameters.spectrum.wave = 400:10:700;
   lightParameters.luminance = 100;
   lRGB = macbethIdealColor(lightParameters,'lrgb');

   macbethLAB = macbethIdealColor('tungsten','lab');
   plot3(macbethLAB(:,1),macbethLAB(:,2),macbethLAB(:,3),'o')

 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