%
% date of creation: 2020-01-19 13:33:47 
%

% Image: TL84_S_G3_T30_1.raw
% Backg.: TL84_bg_S_G3_T30_6.raw
% LSC Profile: TL84_lsc_para_100.txt

wb = [1.6690221198699984  1.0000000000000000  2.0820972065635632];

ctm = 	[ 1.7647562392911900  -0.3514112134089463  -0.3977563554662673
	 -0.5236629645652918   1.8352727379757494  -0.2733220554080529
	 -0.0008688122566507  -0.6485070477297885   1.9077355823362887];

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

successional_color_offset = [-63.8356053534244340   -64.6714386600578170  -161.1109958914138900];
% 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 = [
      354.026,	1033.848,	 390.372,	 324.289,	 558.348,	 560.405, 
     1051.671,	 228.743,	 846.502,	 225.790,	 683.493,	1149.328, 
      121.294,	 251.667,	 540.010,	1215.435,	 717.277,	 189.354, 
     1364.020,	 937.526,	 604.718,	 329.723,	 181.168,	  82.620, 
];

target_raw_green = [
      440.893,	1217.287,	 804.509,	 639.322,	 945.907,	1524.582, 
      942.232,	 482.092,	 662.974,	 314.074,	1405.988,	1390.423, 
      258.524,	 695.617,	 398.128,	1682.521,	 615.752,	 647.197, 
     2262.835,	1570.193,	1014.923,	 549.531,	 303.467,	 135.624, 
];

target_raw_blue = [
     168.292,	 439.673,	 488.502,	 224.024,	 588.614,	 684.204, 
     194.752,	 447.400,	 236.549,	 217.549,	 313.053,	 263.607, 
     273.445,	 215.866,	 132.089,	 294.951,	 356.956,	 445.148, 
     960.964,	 685.132,	 447.953,	 252.158,	 147.521,	  73.713, 
];

avgRGB = [724.306,	1208.882,	 580.608,]; % average over background image!

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