%
% date of creation: 2024-11-12 18:40:29 
%

% Image: color-TL84.raw
% Backgr.: N/A
% LSC Profile: N/A

wb = [1.8082640144401378  1.0000000000000000  2.8835580370073344];

ctm = 	[1.8831106233972081, -0.6014058985969850, -0.2817047248002232
	 -0.3932127809410531, 1.7335629998651714, -0.3403502189241184
	 0.0865873034523955, -0.7568771413983962, 1.6702898379460009];

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

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  2  2  2  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 = [
     128.903,	 250.279,	 128.431,	 114.495,	 163.611,	 169.530, 
     266.106,	 106.658,	 232.309,	 104.484,	 201.183,	 289.442, 
      86.069,	 112.646,	 186.566,	 308.737,	 213.841,	  98.956, 
     341.561,	 258.656,	 189.755,	 132.480,	 100.153,	  79.877, 
];

target_raw_green = [
     147.091,	 288.563,	 210.207,	 171.826,	 242.116,	 376.247, 
     243.321,	 166.762,	 192.109,	 119.568,	 356.393,	 335.584, 
     119.413,	 215.553,	 144.369,	 416.681,	 193.866,	 198.701, 
     560.321,	 415.198,	 291.411,	 186.697,	 129.530,	  92.088, 
];

target_raw_blue = [
      87.945,	 128.027,	 134.240,	  90.365,	 149.691,	 172.917, 
      91.786,	 137.646,	  98.657,	  93.020,	 113.067,	 102.259, 
     110.968,	  97.623,	  82.236,	 109.482,	 122.107,	 136.526, 
     232.714,	 186.051,	 143.204,	 106.863,	  88.061,	  75.105, 
];

avgRGB = [100.412,	 181.571,	  62.968,]; % average over target image!

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

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