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.
|
| calculateError(squares1, squares2)
|
% Copyright 2007 The MathWorks, Inc.
function rms = calculateError(squares1, squares2)
% This function calculates the error between actual and observed values
% from a color checker chart using the deltaE equation and then calculating
% an overall RMS error. The inputs should be cell arrays that are 4-by-6
% and contain values in the Lab colorspace.
deltaE = @(in1,in2) sqrt(sum((in1-in2).^2));
deltaEO = cellfun(@(in1,in2) deltaE(in1,in2), squares1, squares2);
rms = sqrt(sum(sum(deltaEO.^2))/length(squares1));
|
|
Contact us