%
% date of creation: 2024-11-12 18:37:27 
%

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

wb = [2.3045509092139373  1.0000000000000000  2.0048270141067217];

ctm = 	[1.8126105290152801, -0.5860602261574279, -0.2265503028578521
	 -0.3166105683492011, 1.9062265471737121, -0.5896159788245110
	 0.0176299785001488, -0.7271855604950913, 1.7095555819949424];

% 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 = [
     108.191,	 188.603,	 109.985,	  99.840,	 139.117,	 134.214, 
     202.820,	 100.500,	 181.236,	  96.483,	 161.025,	 218.448, 
      84.933,	 104.351,	 166.939,	 245.486,	 185.227,	  95.196, 
     300.768,	 228.477,	 169.838,	 121.674,	  95.203,	  78.453, 
];

target_raw_green = [
     134.451,	 254.282,	 199.154,	 150.350,	 224.080,	 331.072, 
     210.447,	 177.127,	 169.224,	 118.093,	 303.719,	 268.755, 
     133.653,	 212.721,	 137.531,	 355.749,	 193.259,	 221.701, 
     601.089,	 440.951,	 307.494,	 195.547,	 135.506,	  95.805, 
];

target_raw_blue = [
      94.528,	 145.096,	 153.168,	  96.700,	 171.304,	 196.126, 
      99.222,	 164.632,	 110.024,	 102.516,	 124.700,	 107.639, 
     135.227,	 113.225,	  91.578,	 119.471,	 147.576,	 173.107, 
     327.130,	 252.246,	 185.963,	 130.092,	 101.403,	  81.598, 
];

avgRGB = [4.005,	   9.277,	   4.652,]; % average over target image!

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

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