%
% date of creation: 2024-11-06 11:32:34 
%

% Image: color-TL84.raw
% Backgr.: N/A
% LSC Profile: LSC gains inherit the former module data

wb = [1.8081095400364635  1.0000000000000000  2.9004904758619392];

ctm = 	[2.0251613359115894, -0.5404360620944443, -0.4847252738171449
	 -0.6942140166307001, 2.2679112545743769, -0.5736972379436767
	 -0.0882407957717813, -0.9395423874329665, 2.0277831832047477];

% Black Level Subtraction coefficients (red, green1, green2, blue)(Already subtracted with LSC.txt loaded): [0  0  0  0]

successional_color_offset = [0 0 0];
% Note: The additive offset is determined for 10-bit images!

% Weights for fitting:
%
% 1  1  1  1  1  1
% 1  1  1  1  1  1
% 1  1  1  1  1  1
% 1  1  1  1  1  1

%This output is for internal data exchange between the MATLAB tools. Do not edit!
%These values are the average of the linear raw color checker patches (with BLS+LSC and shading compensation using the background image (but without the BLS values entered in the GUI)!

target_raw_red = [
      66.052,	 189.095,	  64.400,	  50.479,	 101.208,	 109.702, 
     207.037,	  42.198,	 168.393,	  39.485,	 138.864,	 232.798, 
      22.061,	  48.431,	 121.527,	 245.392,	 151.636,	  35.039, 
     288.464,	 198.909,	 127.126,	  68.788,	  36.162,	  15.873, 
];

target_raw_green = [
      84.920,	 227.270,	 146.961,	 108.494,	 181.338,	 324.731, 
     182.948,	 103.384,	 127.817,	  55.244,	 296.343,	 279.446, 
      56.391,	 152.830,	  79.846,	 354.159,	 131.512,	 138.518, 
     513.812,	 358.677,	 230.786,	 124.454,	  66.801,	  28.741, 
];

target_raw_blue = [
      23.574,	  64.057,	  70.303,	  25.367,	  86.561,	 112.428, 
      27.344,	  73.463,	  33.682,	  28.022,	  49.096,	  38.276, 
      46.967,	  32.703,	  17.152,	  44.494,	  58.147,	  73.614, 
     172.988,	 123.748,	  79.386,	  42.728,	  23.508,	  10.110, 
];

avgRGB = [121.052,	 219.534,	  75.981,]; % average over target image!

saturation = [114]; % Target CC saturation value!

%-------------------------------------------------- 
