% function[colorTrans]=Model3(rgb,xyz);
% Uses [R G B RG GB BR RR GG BB] model to fit data.
% Input: rgb, 3xN matrix of checker RGB values
%        xyz, 3xN matrix of checker XYZ values
% Ouput: colorTrans, 9x3 matrix of coefficients with best
% estimate of xyz=colorTrans*(r;g;b;rg;gb;br;rr;gg;bb)
%

function[colorTrans]=Model3(rgb,xyz);
rgb2=Model3Rgb(rgb);
colorTrans = rgb2'\xyz';
colorTrans=colorTrans';

