%
% date of creation: 2020-01-19 13:30:02 
%

% Image: 8Mlens_d50_colorchecker_0.raw
% Backg.: 8Mlens_d50_colorchecker_bg_1.raw
% LSC Profile: D50_lsc_para_100.txt

wb = [2.2700451023662755  1.0000000000000000  1.6786669328616952];

ctm = 	[ 1.6331310253266482  -0.4739931775924973  -0.1494781926114570
	 -0.3565842846089046   1.7250585262035278  -0.3238902074095824
	  0.0383303180454253  -0.6347500735583700   1.6738069260546464];

% Black Level Subtraction coefficients (red, green1, green2, blue): [0  0  0  0]

successional_color_offset = [-39.5562877274318150  -11.9100535752311670  -32.9011987220453430];
% Note: The additive offset is determined for 12-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 = [
     130.073,	 397.662,	 130.766,	  99.084,	 205.585,	 205.332, 
     481.150,	  93.792,	 345.339,	  80.650,	 277.950,	 479.394, 
      55.761,	 116.497,	 278.019,	 572.986,	 346.559,	  86.661, 
     778.110,	 520.204,	 316.534,	 160.636,	  83.418,	  35.244, 
];

target_raw_green = [
      193.439,	 601.214,	 372.286,	 244.615,	 449.697,	 772.924, 
      509.177,	 278.350,	 288.619,	 124.731,	 730.086,	 656.806, 
      166.963,	 456.947,	 190.009,	 967.939,	 342.715,	 445.344, 
     1716.599,	1162.577,	 711.785,	 353.131,	 181.946,	  71.930, 
];

target_raw_blue = [
      88.660,	 283.783,	 303.962,	  99.305,	 378.571,	 445.332, 
     118.895,	 344.346,	 137.172,	 121.519,	 190.180,	 141.428, 
     238.155,	 163.420,	  71.513,	 197.861,	 280.420,	 374.623, 
     973.163,	 676.645,	 416.111,	 206.479,	 107.905,	  44.784, 
];

avgRGB = [325.342,	 738.541,	 439.957,]; % average over background image!

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