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.
|
| createCurves(...
|
% Copyright 2007 The MathWorks, Inc.
function [redCurve greenCurve blueCurve] = createCurves(...
observedRed, observedGreen, observedBlue,...
chartRed, chartGreen, chartBlue)
% This function performs cubic spline interpolant curve fitting.
method = 'splineinterp';
redOut = fit(observedRed, chartRed/2^8, method);
greenOut = fit(observedGreen, chartGreen/2^8, method);
blueOut = fit(observedBlue, chartBlue/2^8, method);
redCurve = uint8(redOut(1:observedRed(end)));
redCurve(end+1:2^8) = redOut(observedRed(end));
greenCurve = uint8(greenOut(1:observedGreen(end)));
greenCurve(end+1:2^8) = greenOut(observedGreen(end));
blueCurve = uint8(blueOut(1:observedBlue(end)));
blueCurve(end+1:2^8) = blueOut(observedBlue(end));
|
|
Contact us at files@mathworks.com