%
% date of creation: 2024-11-06 11:28:36 
%

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

wb = [2.3066183169885659  1.0000000000000000  2.0026222358033223];

ctm = 	[2.1788703774588476, -0.7755508490027867, -0.4033195284560607
	 -0.5756871155056067, 2.3837978591392557, -0.8081107436336492
	 -0.0970010380474401, -1.5497480676717261, 2.6467491057191661];

% 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 = [
      46.408,	 131.341,	  47.415,	  36.666,	  78.867,	  74.962, 
     145.052,	  36.607,	 119.303,	  32.488,	  99.362,	 161.512, 
      20.938,	  40.322,	 102.449,	 182.107,	 122.679,	  31.217, 
     244.107,	 166.100,	 105.065,	  56.701,	  30.429,	  13.563, 
];

target_raw_green = [
      74.576,	 199.750,	 141.186,	  89.656,	 168.667,	 285.821, 
     152.123,	 116.027,	 107.161,	  54.846,	 246.853,	 213.658, 
      71.398,	 150.768,	  73.731,	 294.028,	 131.206,	 162.569, 
     551.613,	 381.155,	 244.068,	 131.819,	  72.144,	  32.461, 
];

target_raw_blue = [
      31.520,	  84.515,	  92.693,	  33.134,	 112.576,	 140.714, 
      35.599,	 103.005,	  46.209,	  38.518,	  61.753,	  44.639, 
      72.297,	  49.269,	  26.550,	  55.472,	  84.552,	 112.036, 
     269.683,	 189.999,	 121.996,	  65.792,	  37.139,	  16.983, 
];

avgRGB = [100.245,	 232.200,	 116.331,]; % average over target image!

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

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