Code covered by the BSD License
-
adjustWP(squareMeans,chartSqu...
Copyright 2007 The MathWorks, Inc.
-
calculateError(squares1, squa...
Copyright 2007 The MathWorks, Inc.
-
createCurves(...
Copyright 2007 The MathWorks, Inc.
-
displayChartSquares(squaresIm...
Copyright 2007 The MathWorks, Inc.
-
displayError(squareMeans, cha...
Copyright 2007 The MathWorks, Inc.
-
findAllChartSquares(centroids...
Copyright 2007 The MathWorks, Inc.
-
getChartRGBValues(filename)
Copyright 2007 The MathWorks, Inc.
-
getMeanForEachSquare (squares...
Copyright 2007 The MathWorks, Inc.
-
getObservedChannels(squareMea...
Copyright 2007 The MathWorks, Inc.
-
getReferenceValues(refFile)
Copyright 2007 The MathWorks, Inc.
-
getSquares(image,final)
Copyright 2007 The MathWorks, Inc.
-
nonopt_fit(image, observedRed...
Copyright 2007 The MathWorks, Inc.
-
showDifference(squareMeans, c...
Copyright 2007 The MathWorks, Inc.
-
colorAnalysis.m
-
View all files
from
Color Image Processing Webinar Files
by Bruce Tannenbaum
Presentation file and color calibration demo.
|
| adjustWP(squareMeans,chartSquares)
|
% Copyright 2007 The MathWorks, Inc.
function WPout = adjustWP(squareMeans,chartSquares)
% The function ADJUSTWP will find the white point that will balance the
% input white value in squareMeans with the reference white value in
% chartSquares.
lab2xyz = makecform('lab2xyz');
% Pull out white values
reference = chartSquares{4,1};
measured = squareMeans{4,1};
% Convert to XYZ space
ref_xyz = applycform(reference,lab2xyz);
meas_xyz = applycform(measured,lab2xyz);
WP = abs(ref_xyz./meas_xyz);
WPout = WP(:);
|
|
Contact us