%
% date of creation: 2020-01-19 13:27:35 
%

% Image: CWF_S_G2_T30_2.raw
% Backg.: CWF_bg_S_G2_T30_7.raw
% LSC Profile: CWF_lsc_para_100.txt

wb = [2.0881148306005861  1.0000000000000000  2.3624030320159153];

ctm = 	[ 2.0123386753492367  -0.7320009063734910  -0.2641461252913275
	 -0.4792942694128365   1.6746742594914548  -0.1319210568834109
	  0.0228490474928462  -0.6545818319429023   1.7504757296355404];

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

successional_color_offset = [-66.3047808876915920   -45.9877899273203070  -114.8096615716652600];
% 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 = [
     204.594,	 622.113,	 235.235,	 193.426,	 336.410,	 371.928, 
     643.493,	 133.609,	 469.740,	 124.752,	 449.867,	 715.645, 
      69.485,	 160.598,	 292.718,	 757.121,	 401.026,	 118.540, 
     844.260,	 579.557,	 371.506,	 200.077,	 108.521,	  47.553, 
];

target_raw_green = [
      314.850,	 917.181,	 578.914,	 450.356,	 683.720,	1171.680, 
      765.635,	 332.161,	 443.233,	 205.078,	1110.633,	1086.270, 
      172.392,	 519.684,	 251.135,	1325.961,	 418.486,	 457.980, 
     1726.826,	1194.786,	 767.082,	 408.211,	 219.836,	  92.189, 
];

target_raw_blue = [
     104.295,	 307.099,	 346.518,	 140.833,	 431.117,	 496.497, 
     129.579,	 318.993,	 154.990,	 144.296,	 216.695,	 174.659, 
     190.038,	 144.485,	  79.723,	 204.998,	 255.408,	 315.216, 
     690.769,	 490.993,	 317.874,	 173.405,	  98.289,	  45.616, 
];

avgRGB = [481.853,	1006.164,	 425.907,]; % average over background image!

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