%
% date of creation: 2024-11-06 11:27:38 
%

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

wb = [1.8605070495747786  1.0000000000000000  2.2801553474781153];

ctm = 	[1.8216878801657745, -0.3146014135611443, -0.5070864666046302
	 -0.6281046565842934, 2.3856981402088531, -0.7575934836245598
	 -0.1289130325807701, -1.1825830587993913, 2.3114960913801617];

% 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 = [
      77.106,	 219.156,	  76.844,	  60.845,	 131.232,	 118.721, 
     242.320,	  58.338,	 201.257,	  53.913,	 163.344,	 270.285, 
      31.887,	  63.745,	 173.972,	 302.251,	 206.693,	  47.422, 
     398.226,	 270.652,	 171.500,	  93.001,	  49.949,	  23.000, 
];

target_raw_green = [
     101.389,	 270.935,	 182.430,	 121.971,	 219.163,	 366.655, 
     220.026,	 145.256,	 152.760,	  72.975,	 333.885,	 304.546, 
      87.802,	 196.277,	 106.952,	 410.762,	 179.900,	 199.709, 
     724.532,	 501.440,	 321.049,	 173.879,	  95.002,	  42.724, 
];

target_raw_blue = [
      36.805,	  99.381,	 106.887,	  40.075,	 130.343,	 162.778, 
      44.316,	 116.958,	  55.396,	  44.842,	  74.910,	  55.908, 
      81.710,	  57.810,	  33.085,	  69.347,	  98.818,	 127.291, 
     310.973,	 219.381,	 141.106,	  76.216,	  43.129,	  20.243, 
];

avgRGB = [164.919,	 307.773,	 135.459,]; % average over target image!

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

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